public function __construct($model_name, $options = array()) { $options['id'] = $model_name; parent::__construct($options); $this->_modelList = new Modules_Publications_Model_List(); $this->_modelFields = new Modules_Publications_Model_Fields(); $this->_rubric = $this->_modelList->getRubricInfo($model_name); $this->_addElements(); if (Zend_Registry::isRegistered('current_route')) { $this->setAction(Zend_Registry::get('view')->url(array('route_id' => Zend_Registry::get('current_route')->route_id))); } }