public function beforeRender() { parent::beforeRender(); // $this->set('objectType', 'Param'); $this->set('aFieldTypes', FieldTypes::getTypes()); $category = $this->Category->findById($this->parentArticle['ParamGroup']['parent_id']); $this->set('category', $category); }
public function beforeRender() { parent::beforeRender(); $this->set('aCategoryOptions', $this->Category->getOptions()); }