predominant / TwigView

Twig for CakePHP
http://cakealot.com
MIT License
78 stars 31 forks source link

html.xxx() does not work #14

Open TheColorRed opened 11 years ago

TheColorRed commented 11 years ago

When converting this:

<?php
echo $this->Html->link(
        'Add Post', array('controller' => 'posts', 'action'     => 'add')
);
?>

To this: {{ html.link("Add Post", {"controller" : "posts", "action" : "add"}) }}

Nothing happens, a link should be generated, this issue happens along with other html items

stealthinu commented 11 years ago

I think this problem same as #13 "Lazy loading of Helpers". following line should be solved this problem. public $helpers = array('Html', 'Form');