public setModel ( |
||
$model | AddThis model | |
return |
public function setModel(Model\AddThis $model)
{
$this->model = $model;
return $this;
}
/** * Initialize controller * * @return void */ public function init() { if (!$this->params('isForwarded')) { $this->form = new Form\AddThis(); $this->model = $this->getServiceLocator()->get('AddThisModel'); $this->form->setModel($this->model); } }