Ejemplo n.º 1
0
 protected function _build_content()
 {
     parent::_build_content();
     $this->_content = Form::submit($this->get('name'), $this->get('title'), $this->attributes()->as_array());
 }
Ejemplo n.º 2
0
 protected function _build_content()
 {
     parent::_build_content();
     $input = Bootstrap_Form_Element_Input::factory(array('name' => 'query', 'value' => $this->get('query')))->attributes('class', Bootstrap_Form::SEARCH_QUERY)->append(Bootstrap_Form_Element_Button::factory(array('name' => 'search_button', 'title' => $this->get('button_title', __('Search'))))->icon('search'));
     $this->add($input);
 }