Welcome Guest, Not a member yet? Register   Sign In
Controller structure
#5

[eluser]xwero[/eluser]
Why not create a controllers/admin.php file as a landing page en put all you other admin controllers in the admin directory. You could do the same for A2. your file structure would look like this
Code:
controllers
  admin.php
  admin
    A.php
    A
      A2.php
    B.php
    C.php

But i wouldn't recommend to create your file structure after your navigation structure. What if you change the navigation? Are you going to change your file structure and/or controller and method names as well?
Create a file structure and name controller/methods in a manner you find best maintainable. If it happens to be like the navigation structure fine, if it doesn't use routing.


Messages In This Thread
Controller structure - by El Forum - 06-14-2008, 07:36 PM
Controller structure - by El Forum - 06-14-2008, 08:17 PM
Controller structure - by El Forum - 06-14-2008, 08:48 PM
Controller structure - by El Forum - 06-14-2008, 08:50 PM
Controller structure - by El Forum - 06-15-2008, 01:22 AM
Controller structure - by El Forum - 06-15-2008, 01:40 AM
Controller structure - by El Forum - 06-16-2008, 02:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB