简介:这是Using url_for() in an Action的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。
class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=343147' scrolling='no'>
原文: http://rndm-snippets.blogspot.com/2010/10/using-urlfor-in-action-symfony.html
In an symfony template you can get the base url of the application with:
url_for('@homepage', true);
Using this code in an action causes:
Fatal error: Call to undefined function url_for() in ...
In an action this code should be used instead:
http://biancheng.dnbcw.info/php/343147.html pageNo:5