Can i create controller name like contoller-name i.e can i create contoller using “-”? |
[eluser]manish[/eluser]
Can i create controller name like contoller-name i.e can i create contoller using “-”? i have crated controller such as my-controller but it’s not working Thanks in advance ?
[eluser]Kenzie[/eluser]
I think in order to use dashes in a controller or function name you'll have to use routing: http://ellislab.com/codeigniter/user-gui...uting.html
[eluser]manish[/eluser]
ya it may be work by routing but i don't want to use routing it will not feasible for me .
[eluser]frenzal[/eluser]
A class name can't contain a special character like a dash but I don't see why you can't use some kind of routing. I'm sure you could have it work dynamically so you can strip the dashes and check the uri against existing controllers. |
Welcome Guest, Not a member yet? Register Sign In |