Welcome Guest, Not a member yet? Register   Sign In
How to structure the admin zone
#3

[eluser]Jamie Rumbelow[/eluser]
Well, if we take for example, a simple blog application.

In your admin panel, you want three "pages". A new post page, an edit post page, and a delete post page. You could have one singular admin controller, and structure it like this:

Code:
controllers -
    
    admin.php -
        function add_post,
        function edit_post,
        function delete_post

    other.php

    etc. etc....

Or, you could have a system like this:

Code:
controllers -

    other.php

    admin/ -

        add_post.php
        edit_post.php
        delete_post.php

etc. etc..

So it's really up to whatever development flow you are used to.


Messages In This Thread
How to structure the admin zone - by El Forum - 06-15-2008, 08:38 AM
How to structure the admin zone - by El Forum - 06-15-2008, 08:48 AM
How to structure the admin zone - by El Forum - 06-15-2008, 08:52 AM
How to structure the admin zone - by El Forum - 06-15-2008, 09:02 AM
How to structure the admin zone - by El Forum - 06-15-2008, 09:17 AM
How to structure the admin zone - by El Forum - 06-15-2008, 10:40 AM
How to structure the admin zone - by El Forum - 06-15-2008, 11:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB