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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -