×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Pascual Muñoz
Added: Oct 29, 2016 6:53 PM
Modified: Oct 30, 2016 2:52 PM
Views: 10
Howto Create an action in a controler
  1. public function ${nombre}Action(\Symfony\Component\HttpFoundation\Request  $request)
  2. {
  3.         ${cursor};
  4.        
  5.         return new \Symfony\Component\HttpFoundation\Response(dump($this) .
  6.                  "Esto es una Stub de ${nombre}Action, posiblemente quieras usar en esta linea :
  7.                   return \$this->render(\$view)");     
  8. }