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
Post a Comment