Advertisement
fahmihilmansyah

defaultcontroller

Mar 18th, 2015
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Cba\PagesBundle\Controller;
  4.  
  5. use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  6. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  7. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  8.  
  9. class DefaultController extends Controller
  10. {
  11.     /**
  12.      * @Route("/cbahello/{name}")
  13.      * @Template()
  14.      */
  15.     public function indexAction($name)
  16.     {
  17.         echo $name." aaa";
  18.         //return array('name' => $name);
  19.     }
  20.     /**
  21.      * @Route("/cbacilukba/{isi}")
  22.      */
  23.     public function cilukbaAction($isi){
  24.         echo $isi."adad";
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement