Symfony helpers

Helpers uses underscore naming convention, rather than camel case, as they are functions rather than class methods.
Default helpers included in every template are: URL, Helper, Tag, Asset, Partial, Cache, Form. They can configurable in the settings.yml file.
To use a helper outside of the template, use sfLoader::loadHelpers(‘Text’)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s