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:
$baseUrl = $this->getController()->genUrl('@homepage', true);
Code Snippets and Hints for HTML, PHP, Java, MySQL, Xcode etc...
url_for('@homepage', true);
$baseUrl = $this->getController()->genUrl('@homepage', true);
0 comments:
Post a Comment