public function __construct($options = null) { Zmz_Form_Initialize::init($this); $jqueryHelper = new ZendX_JQuery_View_Helper_JQuery(); $this->_jquery = $jqueryHelper->jQuery(); parent::__construct($options); }
public function __construct($options = null) { if (!is_array($options) || count($options) <= 0) { throw new Zend_Form_Decorator_Exception('$option is not array or there is\'t any value'); } foreach ($options as $k => $v) { if (is_array($v)) { $this->_validators[(string) $k] = $v; } else { $this->_validators[null] = $options; break; } } $jqueryHelper = new ZendX_JQuery_View_Helper_JQuery(); $this->_jquery = $jqueryHelper->jQuery(); }