addPrefixPath( 'App_ECommerce_Product_Form_Element', 'App/ECommerce/Product/Form/Element/', 'element' ); $this->addPrefixPath( 'App_ECommerce_Product_Form_Decorator', 'App/ECommerce/Product/Form/Decorator/', 'decorator' ); $this->_addHelperPath($this->getView()); return $this; } protected function _addHelperPath(Qs_View $view) { $view->addHelperPath('App/ECommerce/Product/View/Helper/', 'App_ECommerce_Product_View_Helper_'); return $this; } public function getAjaxData() { $data = parent::getAjaxData(); foreach ($this as $item) { if ($item instanceof App_ECommerce_Product_Form_Element_CategoriesSelector) { /** @var $item Zend_Form_Element */ $name = $item->getName(); if ($item->isRequired() && null === Qs_Array::get($data, $name, null)) { Qs_Array::set($data, $name, ''); } } } return $data; } }