Welcome Guest, Not a member yet? Register   Sign In
controller nested folders
#1

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

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

[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
#4

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

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

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

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

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB