noiselabs / SmartyBundle

Smarty3 template engine bundle for Symfony
http://smartybundle.readthedocs.io/
GNU Lesser General Public License v3.0
51 stars 36 forks source link

unknown modifier "csrf_token" #43

Closed dorgan closed 10 years ago

dorgan commented 10 years ago

It looks like there is not a modifier created for csrf_token

vitorbrandao commented 10 years ago

Hello dorgan,

which branch are you using? I've pushed some changes to form-extension but that shouldn't affect master. I'm on vacations and don't have access to the code right now, sorry. No dia 13 de Out de 2014 10:45, "dorgan@donaldorgan.com" < notifications@github.com> escreveu:

It looks like there is not a modifier created for csrf_token

Reply to this email directly or view it on GitHub https://github.com/noiselabs/SmartyBundle/issues/43.

dorgan commented 10 years ago

OK i have just updated to using the form-extension branch. But I am still having the same problem. I searched the bundle for csrf but didnt find much and nothing that looked like a smarty modifier.

dorgan commented 10 years ago

I was able to track this down and use {'authenticate'|form_csrf_token} maybe create an alias for this called csrf_token this way it lines up with the twig methods.