prashants / webzash

Easy to use web based double entry accounting software in PHP - MySQL under MIT License
http://webzash.org
Other
207 stars 109 forks source link

How to overriding Application routes names ? #120

Open prdpspkt opened 6 years ago

prdpspkt commented 6 years ago

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

prashants commented 6 years ago

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

prdpspkt commented 6 years ago

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

prashants commented 6 years ago

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