Setting up HMVC in CodeIgniter

О том, куда нужно распаковать файлы из архива HMVC в системе CodeIgniter.

In the contents of the zip file are three php files:


Move these three files into the “.../application/libraries/” folder.
Переместить эти 3 файла в папку “.../application/libraries/”.


И о том, как проверить работоспособность установленной HMVC:

Refresh (F5) your browser. There’s should still be the Welcome to CodeIgniter screen.

Now add the modules. Create the following directory structure “application/modules/welcome/controllers/“.

Move the “application/controllers/welcome.php” to “application/modules/welcome/controllers/welcome.php“.

Refresh your browser. You should still see the Welcome to CodeIgniter screen.
Create the folder “application/modules/welcome/views/“
Move the “application/views/welcome_message.php” to “application/modules/welcome/views/welcome_message.php“.
Do a final reload on your browser. You should still see the Welcome to CodeIgniter screen.
So, the Modular Extensions is installed correctly.

No comments:

Post a Comment