Advertisement
fahmihilmansyah

methode req post get

Mar 18th, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. /**
  2.      * @Route("/cbainput/{name}")
  3.      *
  4.      */
  5.     public function reqAction( $request, $name)
  6.     {
  7.        
  8.         /* echo $request->query->get('asuu'); ////methode GET*/
  9.         echo $request->get('nama')."<br>";///methode POST
  10.         echo $request->get('alamat')."<br>";
  11.         //echo  $this->container->get('request');
  12.         return new Response($name."adad");
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement