views:

38

answers:

1

hello all

how we could create a container for Zend_Navigation instead of xml file use of database table?

thanks

+1  A: 

create table with columns {action,controller,ative,privalege ...etc)

then

$rows = $db->fetchAll();
$config = Zend_config($rows);
$navigation = new Zend_Navigation($config); or new Zend_Navigation($rows);

why this not be used a)database is slow b)layered navigation would be mess (one to many relation you ill need to create more tables)

jason bourne