Dynamic Navigation

Hi,

Is there any Extension for navigation which is having following features?

  1. Menus should be loaded from database for each session and not each request.

  2. Different types of menus. Ex. Top Menu, Sub Menu, Action Menu

  3. Menu should list the links only if the user have permission for the link’s action

Thanks

Esak

regarding (3) above, yes, you do it like this:


$this->widget('zii.widgets.CMenu', array(

	'items' => array(

	array('label' => Yii::t('top menu', 'Login'), 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest)...



The example above used CMenu widget from zii, which is the full offical extensions library for Yii and configures the link to be shown only if the "current user" is a guest user (naturally for a login form…).

See the API documentation about checking if guest. Note that isGuest is a proprty, not a method (like I thought in the beginning).

Can i also fetch my navigation bar from database??

I have this category table in my database and i want to fetch the data from table category in my navigation.