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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -