Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(Yii::app()->user->checkAccess('admin'))
- {
- echo "you should see this if you're an admin";
- $this->pageTitle = "Buggyman Portal - Admin Panel";
- $this->breadcrumbs = array(
- 'Admin Home'=>array('index'),
- 'Manage',
- );
- $this->menu = array(
- array('label' => 'List Post', 'url' => array('index')),
- array('label' => 'Create Post', 'url' => array('create')),
- array('label' => 'Update Post', 'url' => array('update', 'id'=>$model->id)),
- array('label' => 'Delete Post', 'url' => '#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
- array('label' => 'Manage Post', 'url' => array('admin')),
- );
- }
- else
- echo "you're not an admin lol\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement