Skip to content

Instantly share code, notes, and snippets.

@jtarleton
Last active December 11, 2015 05:18
Show Gist options
  • Save jtarleton/4551174 to your computer and use it in GitHub Desktop.
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
<?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