Yii module actions url -


i have in main project views/layouts/main.php following 'events' module actions

array('label'=>'events', 'url'=>'#', 'visible'=>userutility::isuser(), 'items'=>array(                 array('label'=>'konzerte', 'items'=>array(                     array('label'=>'erstellen', 'url'=>array('events/booking/create')),                     array('label'=>'verwalten', 'url'=>array('events/booking/admin')),                 )), 

if click on 'erstellen' module action works perfectly. if click on verwalten afterwards error

error 404 unable resolve request "events/events/concert/admin".* 

the controller action adds

events/  

in front of if i'm on page events module. how can overcome problem?

you can try create url createabsoluteurl() or add slash before /events

array('label'=>'verwalten', 'url'=>array('/events/booking/admin')), 

Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -