Exemple #1
0
 /**
  * Saves the Id of current record to give
  * access for other methods of controller to it
  *
  * @param <type> $model - the model object
  * @param <type> $data  - saved data.
  * 
  * @return void
  * @since 1.0
  */
 protected function postSaveHook($model, $data)
 {
     $this->newsletterId = $model->getState($model->getName() . '.id');
 }