<form action="http://example.com/index.php/" accept-sharset="utf-8" method="post"> <input class="text" name="username" value="My username" type="text" id="form_username" /> </form>Controller (home.php):
$form = \Fuel\Core\Form::open(); $form .= \Fuel\Core\Form::input('username', 'My username', array('class' => 'text')); $form .= \Fuel\Core\Form::close(); return Response::forge(View::forge('home/index.twig', array( 'form' => $form, )));Template (index.twig):
{{ form }}I got plaintext too when using a model and creating a Fieldset.
return Response::forge(View::forge('home/index.twig')->set('form', $form, false));
It looks like you're new here. If you want to get involved, click one of these buttons!