public function actionDefault($categoryId) { if ($categoryId !== NULL) { $this->category = $this->categories->getByID($categoryId); $this['categoryForm']->setDefaults(array('title' => $this->category->getTitle())); } }
public function actionDefault($categoryId) { if ($categoryId !== NULL) { $this->category = $this->categories->getByID($categoryId); $this['categoryForm']->setDefaults(array('title' => $this->category->getTitle())); } }