3

The demo application I downloaded from php symfony site, has following syntax for controller:

_controller:  Symfony\Bundle\FrameworkBundle\Controller\Template::hello

and

_controller: Symfony\Bundle\FrameworkBundle\Controller\Template::templateAction

The relative path for file is app\config\routing.yml.

The reference pages that are mentioned in that file do not have double-colon\scope resolution operator syntax. Is this a valid syntax?

http://symfony.com/doc/current/book/routing.html http://symfony.com/doc/current/cookbook/templating/render_without_controller.html

Thanks in advance.

  • 1
    *Is this a valid syntax?* Since it's included in a file provided by Symfony, it will probably work. – A.L Apr 19 '16 at 11:17
  • 1
    You can read here about [Best Practices](http://symfony.com/doc/current/best_practices/index.html) – vardius Apr 19 '16 at 12:30

0 Answers0