Hi,

With annotations, is it possible to set up multiple routes for a controller without having to set up multiple controllers?

At the moment I am doing:

/**
 * @extra:Route("/index")
 * @extra:Template()
 */
public function indexAction() {
    return array();
}

/**
 * @extra:Route("/index.{_format}")
 * @extra:Template()
 */
public function indexFormatAction() {
    return $this->indexAction();
}


But would much prefer to lose the format wrapper controller and use something like:

/**
 * @extra:Route("/index")
 * @extra:Route("/index.{_format}")
 */
public function indexAction() {
    return array();
}

Cheers

--
If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com
 
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to