Welcome Guest, Not a member yet? Register   Sign In
admin panel: not sure whether create controller for each page or use methods
#1

[eluser]lolmann[/eluser]
hey,

i'm creating an admin panel which has the pages x,y,z. i set up a controller called administration.php which handles the user authentication and serves the views. i started out thinking that each of the pages x,y, and z will have their own method in the controller.

but now i realize that each of these pages will actually have quite a lot of code in them. additionally, for some pages it would be great to have methods in them. for example, on an admin page where there is a form it would be great to have a method which processes the form input.

i therefore think it would be great if each of the pages x,y, and z had their own controller.

but how do i give them their own controller if administration.php is the controller already?

do i call a controller from within a controller? am i missing something?

i appreciate you help.

thanks-

l


Messages In This Thread
admin panel: not sure whether create controller for each page or use methods - by El Forum - 08-06-2010, 05:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB