Welcome Guest, Not a member yet? Register   Sign In
Cant rename or move application folder without breaking the cms.
#1

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

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

[eluser]Paulo Carvalho [/eluser]
yes done all of that Smile
#4

[eluser]Paulo Carvalho [/eluser]
I can make a short video demonstrating it if needed.
#5

[eluser]Rok Biderman[/eluser]
Yes, i figured it had to be something more challenging than that Smile I've reread it and don't quite get it. Maybe a short video would help after all.
#6

[eluser]Paulo Carvalho [/eluser]
ok will do it now.
Just publishing it to vimeo.
Takes a long time to finish converting...
#7

[eluser]Paulo Carvalho [/eluser]
Here is t short video:
https://vimeo.com/45499840
#8

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB