$login_form = \Fieldset::factory('login'); $login_form->add('username', 'Username'); $login_form->add('password', 'Password', array('type' => 'password')); $data['form'] = \Fieldset::instance('login'); $this->template->content = \View::factory('profile', $data);For some reason, when I echo the form in the template, it turns it in the the html-entity'd version. Any ideas how to fix this?
$this->template->content = \View::factory('profile'); $this->template->content->set('form', $form, false);
// when outputting, will overwrite any previous action $fieldset->build('action/uri'); // using set_config(), currently only possible to set all form_attributes at once (will overwrite previous array) $fieldset->set_config('form_attributes', array('action' => 'action/uri')); // during fieldset construction by passing config array $fieldset = Fieldset::factory('login', array('form_attributes' => array('action' => 'action/uri')));
It looks like you're new here. If you want to get involved, click one of these buttons!