Symfony links

Action names and URL can be completely different. In template we can use link_to() from the route tags.

Link_to() can also have params like class, confirm, absolute.

Getting request from the user,
In action
$this->getRequestParameter(‘name’);

In template,
$sf_params->get(‘name’);

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