Welcome Guest, Not a member yet? Register   Sign In
Can i create controller name like contoller-name i.e can i create contoller using “-”?
#1

[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 ?
#2

[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
#3

[eluser]manish[/eluser]
ya it may be work by routing but i don't want to use routing it will not feasible for me .
#4

[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.




Theme © iAndrew 2016 - Forum software by © MyBB