Hiding class from url |
[eluser]Nial[/eluser]
I'm trying to avoid having to place my default CI controller within a url. For example, I have a default controller: welcome. The controller has two classes: index and info. When I navigation to: http://mysite.com/ the default welcome controller is called and the code in index is executed, as expected. However, where I would like to be able to navigate to http://mysite.com/info/ to trigger the info message, I get a 404 error. Instead, I must navigate to http://mysite.com/welcome/info. What baffles me is that with another CI project, this works perfectly. I've dug around, and I'm not doing anything different with regards to .htaccess (I simply hide index.php), or routes (all I define is the default controller). I'm certain I must have done something to initiate this behaviour, but I've forgotten what! Any suggestions? |
Messages In This Thread |
Hiding class from url - by El Forum - 07-10-2008, 03:56 PM
Hiding class from url - by El Forum - 07-10-2008, 04:48 PM
Hiding class from url - by El Forum - 07-10-2008, 05:11 PM
Hiding class from url - by El Forum - 07-10-2008, 05:16 PM
Hiding class from url - by El Forum - 07-11-2008, 04:37 AM
Hiding class from url - by El Forum - 07-11-2008, 04:46 AM
Hiding class from url - by El Forum - 07-11-2008, 04:50 AM
Hiding class from url - by El Forum - 07-11-2008, 10:51 AM
|