<form action="CURRENT_URI" accept-charset="utf-8" method="post">
{{ Html('hr') }} <p> {{ Form('open', {}, ['type', 'id']) }} {{ Form('input', 'value', value, {'style': 'border:solid 1px;'}) }} {{ Form('submit') }} {{ Form('close') }} </p>Thanks again for pointing me in the right direction.
<?php class Fuel_Twig_Extension extends Twig_Extension { // Project name public function getName() { return 'fuel_twig'; } // Filters public function getFilters() { return array( 'dump' => new Twig_Filter_Function(__CLASS__.'::filter_dump'), ); } //-------------------------------------------------------------------------- // FILTERS //-------------------------------------------------------------------------- /** * Debug a variable * @param any Variable to debug * @return void Debug dump */ public static function filter_dump($var) { return \Debug::dump($var); } }
$twig = \Parser\View_Twig::parser(); include_once APPPATH.'vendor'.DS.'Twig_ext.php'; $twig->addExtension(new \Fuel_Twig_Extension());
{{ variable|dump }}
It looks like you're new here. If you want to get involved, click one of these buttons!