![]() |
Error loading module Separation when leaving out index as the method - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Error loading module Separation when leaving out index as the method (/showthread.php?tid=32635) |
Error loading module Separation when leaving out index as the method - El Forum - 07-29-2010 [eluser]Unknown[/eluser] Hello, I have module separation working fine but i'm running into an error page if I don't put site/module/method. The error is fine but I don't want an error page to show up and I want them to just be directed to the index of that module. For example if I have my default controller set to mod1 it takes me to site.com/mod1/index (url shows up as site.com) if I try to goto site.com/mod2 I get the error bellow. If i do site.com/mod2/index I don't get the error. I can't even echo out anything in index.php to see when its happening. So its hard to debug. Warning: require_once(../system/codeigniter/CodeIgniter.php) [function.require-once]: failed to open stream: No such file or directory in /home/path/to/site/account/index.php on line 128 Fatal error: require_once() [function.require]: Failed opening required '../system/codeigniter/CodeIgniter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/path/to/site/account/index.php on line 128 site/account/index.php only exists in site/folder/modules/account/views/index.php but that index.php file doesn't have 128 lines. The path that its telling me has a problem doesn't even exist. So how do you get around this problem? I want to show a 404 page but well it doesn't do anything but error out |