![]() |
Cant rename or move application folder without breaking the cms. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Cant rename or move application folder without breaking the cms. (/showthread.php?tid=53071) |
Cant rename or move application folder without breaking the cms. - El Forum - 07-10-2012 [eluser]Paulo Carvalho [/eluser] Hi guys, need a bit of help here. I simply cant rename or move application folder. My setup : |ROOT index.php |APPLICATION |INSTALL |CMS_CORE |codeigniter-2.1.2 |system |CMS_GLOBAL |assets_cache |cms_cache |Packages |themes |user_files All works as expected hmvc extension there backend and frontend all fine. I want to be able to either have : |application |cms-v1 or |cms-v1 |application if I move aplication into such structure I get an error in MY_Controller class MX_Controller not found. In I move it back to just application works fine. If I rename application folder to something like cms same error. Any Ideas? Cant rename or move application folder without breaking the cms. - El Forum - 07-10-2012 [eluser]Rok Biderman[/eluser] Err, this is basic enough that I might be missing something, but did you change Code: $application_folder = "application"; in index.php according to your desired changes? Cant rename or move application folder without breaking the cms. - El Forum - 07-10-2012 [eluser]Paulo Carvalho [/eluser] yes done all of that ![]() Cant rename or move application folder without breaking the cms. - El Forum - 07-10-2012 [eluser]Paulo Carvalho [/eluser] I can make a short video demonstrating it if needed. Cant rename or move application folder without breaking the cms. - El Forum - 07-10-2012 [eluser]Rok Biderman[/eluser] Yes, i figured it had to be something more challenging than that ![]() Cant rename or move application folder without breaking the cms. - El Forum - 07-10-2012 [eluser]Paulo Carvalho [/eluser] ok will do it now. Just publishing it to vimeo. Takes a long time to finish converting... Cant rename or move application folder without breaking the cms. - El Forum - 07-10-2012 [eluser]Paulo Carvalho [/eluser] Here is t short video: https://vimeo.com/45499840 Cant rename or move application folder without breaking the cms. - El Forum - 07-10-2012 [eluser]wiredesignz[/eluser] The first error after changing index.php shows you the problem with the path. Your application is somehow still loading 'CMS/application/third_party/MX/Router.php' which must be from a different application directory. Your current application does not even have an 'application/third_party' directory at that time. Check your .htaccess file. Cant rename or move application folder without breaking the cms. - El Forum - 07-10-2012 [eluser]Paulo Carvalho [/eluser] Thanks wiredesignz, I have even deleted the htacces contents but still the same error. I am happy to share code if needed. Cant rename or move application folder without breaking the cms. - El Forum - 07-10-2012 [eluser]wiredesignz[/eluser] Its a path issue, it has nothing to do with Modular Extensions or CodeIgniter, you should be able to sort it out yourself. The error occurs in application/third_party/MX/Router.php on line 4, but your application path is renamed to cms/third_party/MX/... after the edit. Ask yourself. "How can an error occur in a path that does not exist?" PHP error messages are not ambiguous. |