data ) ){ if( $this->Contact->save( $this->data ) ){ $lastId = $this->Contact->getLastInsertId(); $this->flash('Your new user has been created.','/c/contacts/view/'.$lastId ); } } } } ?>