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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -