How can i remove /index in URL in routing in cakePHP? -
this question has answer here:
i want remove /index in url.
router::connect('/home/:index', array('controller' => 'homes'));
and :
router::connect('/home/', array('controller' => 'homes','action'=>'index'));
you need likerouter::connect('/', array('controller'=>'homes', 'action'=>'index'));
without '/home/:index'
Comments
Post a Comment