Last active
December 11, 2015 05:18
-
-
Save jtarleton/4551174 to your computer and use it in GitHub Desktop.
How to call "link_to" and "url_for" outside of the view in symfony 1.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/****************************************************************************************** | |
These helpers are required for either: | |
link_to() | |
or | |
url_for() | |
******************************************************************************************/ | |
sfContext::getInstance()->getConfiguration()->loadHelpers('Tag'); | |
sfContext::getInstance()->getConfiguration()->loadHelpers('Url'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment