predominant / TwigView

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

Issue with Elements #27

Open barman789 opened 9 years ago

barman789 commented 9 years ago

I am including admin_top_nav.tpl Element in the Admin Template like below.

{% element 'admin_top_nav' %}

It does gets included and displays all the HTML but does not render anything inside {{ }}. For eg following code

{{ html.link("User Management", {"controller" : "users", "action" : "index", "admin" : true}) }}

Please see that I have included the HTML Helper in the Controller and if I put the same above line in the View or Template File it works fine. Only when it is inside the Element it doesn't work. I am not even passing any Variable, this is just static text that I am trying to display