Phalcon Framework and Volt Templating

Why Phalcon? Yes, because it’s fast and light. But please remember, when you are using volt templating, you will find the problem when you want to add the attributes inside the textField() tag. When you are not using volt, it should be like this. echo $this->tag->textField(array("name", "class"=>"tes")); But when you are using volt, from the documentation , you have to do like this. {{ textField("name", "class":"tes") }} But you will see this error. Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /var/www/phalcon/cache/volt/%%var%%www%%phalcon%%app%%views%%signup%%index.volt.php on line 7 ...

September 23, 2015 · Linggar Primahastoko