Thursday, September 18, 2014

Symfony1: use helper in action class

$this->getContext()->getConfiguration()->loadHelpers('Partial');


$this->generateUrl("userSignup");
The method is defined in sfComponent.class.php. This is the recommended way, not the hacky workaround of loading the view helpers and using them.

No comments: