CodeIgniter Forums
controller nested folders - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: controller nested folders (/showthread.php?tid=18233)

Pages: 1 2 3 4


controller nested folders - El Forum - 04-29-2009

[eluser]Jagar[/eluser]
Is there any restrictions in the controllers folder as to how many levels of folder you can have?

This is how mine is right now

[controllers]
[admin]
[admin_management]
home.php
home.php
...
...

I'm trying admin/admin_management and something should display right?

Any help is appreciate

Thanks


controller nested folders - El Forum - 04-29-2009

[eluser]Dam1an[/eluser]
You need domain.com/admin/admin_management/home (you need the controller name unless you have it specified in your routes)


controller nested folders - El Forum - 04-29-2009

[eluser]Jagar[/eluser]
Yes domain for sure, but i'm working locally

Here is what I do
Code:
http://localhost/consultations/index.php?/admin/admin_management

Always gives me 404,

I'm using Apache, but will be move to IIS 6 once is completed.

Thanks


controller nested folders - El Forum - 04-29-2009

[eluser]Dam1an[/eluser]
You forgot to add 'home' on the end Tongue


controller nested folders - El Forum - 04-29-2009

[eluser]Jagar[/eluser]
Home is my default controller as set in the route(s).php, also try that as well but still doesn't work.


controller nested folders - El Forum - 04-29-2009

[eluser]Dam1an[/eluser]
I just noticed, you have a ? after index.php, try removing that


controller nested folders - El Forum - 04-29-2009

[eluser]Zeeshan Rasool[/eluser]
remove index.php usnig .htaccess then you can access nested controller.


controller nested folders - El Forum - 04-30-2009

[eluser]Jagar[/eluser]
[quote author="zEsHaN" date="1241084395"]remove index.php usnig .htaccess then you can access nested controller.[/quote]

I can't use any .htaccess, because this project will be served on IIS 6, and I don't like it either, but no choice. so I have to do everything without htaccess.


controller nested folders - El Forum - 04-30-2009

[eluser]Jagar[/eluser]
[quote author="Dam1an" date="1241057936"]I just noticed, you have a ? after index.php, try removing that[/quote]

If I remove that it won't work on IIS, so that should be there, I even tried using routing but still does not work.


controller nested folders - El Forum - 04-30-2009

[eluser]Dam1an[/eluser]
What exactly is IIS, cause I've heard it mentioned a few times on here (normally when people complain something isn't working)