webzash icon indicating copy to clipboard operation
webzash copied to clipboard

How to overriding Application routes names ?

Open prdpspkt opened this issue 7 years ago • 3 comments

How do I override routes name to my desired name. In http://localhost/wzusers for wzusers I want to use users only.

prdpspkt avatar May 17 '18 09:05 prdpspkt

https://github.com/prashants/webzash/blob/master/Config/routes.php

prashants avatar May 17 '18 09:05 prashants

I'm totally new to CakePHP and I tried but couldtn't manage. Please help me showing an example. You would be greatly appreciated.

prdpspkt avatar May 17 '18 12:05 prdpspkt

Something of this sort. I haven't tested it.

Router::connect('/user/add/*', array('controller' => 'wzuser', 'action' => 'add'));

https://book.cakephp.org/2.0/en/development/routing.html

prashants avatar May 18 '18 17:05 prashants