public function beforeRender() { parent::beforeRender(); $this->set('objectType', $this->getModel()); $this->set('parent_id', $this->parent_id); $model = $this->loadModel($this->parentModel); $this->parentArticle = $this->parent_id ? $model->findById($this->parent_id) : array(); $this->set('parentArticle', $this->parentArticle); }
public function beforeRender() { parent::beforeRender(); $this->set('objectType', 'User'); }
public function beforeRender() { parent::beforeRender(); $this->set('objectType', 'CategoryParam'); }
public function beforeRender() { parent::beforeRender(); $this->set('objectType', $this->Product->objectType); }