Greg Freeman wrote:
> Hello everyone,
> 
> I was wondering if some people could give me some tips on how to implement
> an admin section in the Zend Framework, should I just make it a module? or
> should I create a separate controller. I was leaning towards the module
> solution.

We currently use two modules: site and admin. This is because I haven't
yet found a nice way to use multiple modules within a site that doesn't
result in lots of coupling between the modules when the page is displayed.

Some of my initial thoughts about admin sections are at the bottom of
http://akrabat.com/2007/02/03/modules/ and there are some useful
comments too.

> 
> Also with the plugin system is there a way to globally attach a header and a
> footer to all views so they don't have to be included in every view file?

The easiest way is to write your own render() method in a derivative of
Zend_Controller_Action that all your concrete action classes will then
derive from.


> And finally where should the website navigation menu go. The menu items will
> come from a database.

That one all depends ;)  Two obvious options are that you could collect
the menu in your new render() function or use a Zend_View_Helper.

Regards,

Rob...

Reply via email to