setMethod('get'); return $this; } protected function _initElements() { $this->addElement( 'select', 'orderId', [ 'label' => 'Sort By', 'multiOptions' => $this->_getOrderOptions(), 'onchange' => 'this.form.submit();', ] ); $this->addElement('hidden', 'ipp'); return $this; } protected function _getOrderOptions() { $list = new App_ECommerce_Product_List([]); return $list->getOrderTitles(); } }