Adding navigation container and pages dynamically

zend-navigation
zend-mvc

#1

hello everyone, just out of curiosity is it possible to have a model that creates navigation container and pages from options that are available from querying the database? I already use Zend-Navigation but it is needed to be provided configuration array in the application module.config.php.


#2

Sorry this is wrong, because this is only one way. There are more options to create a navigation.

Create your own factory for the navigation and combine the navigation configuration from the config and the database (repository, service etc). Register the new factory for the navigation, see at the quick start.

(Note to myself: adding an example to the documentation)