Welcome Guest, Not a member yet? Register   Sign In
Subfolders in CI?
#2

[eluser]steelaz[/eluser]
No need for .php (unless you want to) in your path, so to call "site" controller "index" method, you would go to http://www.example.com/ci/site/index/ , or http://www.example.com/ci/site/ , since "index" is default method.

To have a folder, just create one under "controllers" folder and place your controllers there, for example:

/controllers/admin/home.php
/controllers/user/home.php
/controllers/login.php

Will use these links:

http://www.example.com/ci/admin/home/
http://www.example.com/ci/user/home/
http://www.example.com/ci/login/


Messages In This Thread
Subfolders in CI? - by El Forum - 09-27-2009, 12:00 PM
Subfolders in CI? - by El Forum - 09-27-2009, 12:39 PM
Subfolders in CI? - by El Forum - 09-27-2009, 02:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB