Using helpers within an action in symfony 1.0

Chris Sedlmayr

16 Mar 2010

If you ever need to use a helper outside a template, you can still load a helper group from anywhere by calling


where $helpers is a helper group name or an array of helper group names. For instance, if you want to use simple_format_text() in an action, you need to call


I know this is covered in the symfony docs but it’s a fairly handy thing to know so thought I would make it easier to find.