zend framework - Good way to initialize pages using Zend_Navigation -


i reading on zend navigation , wondering whats way set up.

where setup up? can using application.ini - may make application.ini long read. maybe using resource method? maybe plugin?

do hardcode pages? eg.

$pages = array(   array(     'label' => 'home',     'title' => 'home page title',     'controller' => 'index',     'action' => 'index'   ),   array(     'label' => 'blog',     'title' => 'blog',     'controller' => 'index',     'action' => 'blog',     'pages' => array(       array( 

in dynamic site seems smarter generate database, eg. child pages of blog generated blog categories? except want once? maybe must cache it? must make sure tho if new categories added, navigation updates.

to make can add new pages cms ex. have put in database model. zend create function return array of categories , pages. ex.

$tools->gettreeofpagesandcategories(); 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -