On 4 Apr 2008, at 05:35, Greg Freeman wrote:

What is the best method for creating an admin area for a zend framework
application?


I've done it in two ways using modules:

1. Each module has an admin controller
2. Two modules: admin and frontend


Going forward, I am going to be using the two separate modules approach as it's easier to treat the admin as a separate site. One tip I have is that it's wise to have a models directory outside of the modules for those models that are common to the application.

e.g.

mysite/
        application/
                models/
                modules/
                        admin/
                                controllers/
                                views/
                        default/
                                controllers/
                                views/
        library/
        public/
                /admin
                        css/
                        img/
                        js/
                /default/
                        css/
                        img/
                        js/



Regards,

Rob...

Reply via email to