Hi Nice work.
Will it be possible for you to add the path of the widget YumAdminMenu in the
configuration ?
The advantage is anytime you make an update we don't have to change the menu if
we add things on it.
the procedure will be the following
user/controllers/YumController.php
public function renderMenu() {
if(Yii::app()->user->isAdmin()) $this->widget(Yum::module()->_YumAdminMenu);
else if(!Yii::app()->user->isGuest) $this->widget(Yum::module()->_YumUserMenu);
}
user/UserModule.php
public $_YumAdminMenu= 'application.modules.user.components.YumAdminMenu';
public $_YumUserMenu= 'application.modules.user.components.YumUserMenu';
Original issue reported on code.google.com by disvro...@gmail.com on 1 May 2012 at 8:06
Original issue reported on code.google.com by
disvro...@gmail.com
on 1 May 2012 at 8:06