I am building a application in codeigniter and is running in some issues with routes.
I want that if someone punch in this url: http://www.mywebsite.com/request-information, a controller called ‘myform’ should be called.
I am configuring routes file as this:
$route[‘request-information’]=’leadform’;
But this doesn’t work with hyphen, may be due to regex interference.
Please guide.
This line is from a project of mine and works just fine:
Make sure your mistake dosn’t come from another place. What is the error message, where is it routing you to?