Welcome Guest, Not a member yet? Register   Sign In
Learning how configure correctly
#1

[eluser]Unknown[/eluser]
I am using xampp and my document root in apache is set to htdocs directory by default. I download Codeigniter and unzip the project into this directory. It runs fine. Now I would like to use CI to create my own project. In the controllers folder I would like to create a folder named "myproject" and in the views folder of application folder, I would like to create a folder named "myproject_view" in which I will store all of my view files. My problem is I don't know how to reset my config file (especially the route.php) for my project to work then.

CodeIgniter documentation doesn't have a section to specify how to do this, the information given in URI Routing chapter is not enough for readers to understand this at all. Plus, What if I also would like to store my controler files in a nested folder (controllers > somefolder > someanotherfolders > etc) ? Thank you very much.
#2

[eluser]Aken[/eluser]
http://ellislab.com/codeigniter/user-gui...llers.html
#3

[eluser]toopay[/eluser]
Iam not sure i understand your issue there. You need to run multiple application, which sharing a same codeigniter, yes?

If yes, the easiest way would be :
1. create a folder called "frameworks", and copy the whole files you download from CI repo. Try to access the welcome page. If it show the welcome page, then continue next step.
2. CUT the application folder, and the index.php(the front socket) to your clipboard. Now move in the directory, which has same level with framework, create a folder, called "app1", then paste into this folder. It will create a structure like this :
Code:
-- framework/system
-- app1/application
       /index.php
3. Open "index.php" find this line, and adjust :
Code:
/*
*---------------------------------------------------------------
* SYSTEM FOLDER NAME
*---------------------------------------------------------------
*
* This variable must contain the name of your "system" folder.
* Include the path if the folder is not in the same  directory
* as this file.
*
*/
$system_path = '../framework/system';
4. If everything goes well, you should now could see the standard codeigniter welcome page, by access the app/index.php. If not, some error message will help you to fix the path.

From here, to create another application, you only need to copy the "app1" into another "app2" and so on.




Theme © iAndrew 2016 - Forum software by © MyBB