SHARE
TWEET

Untitled

a guest Jul 17th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if(Yii::app()->user->checkAccess('admin')): ?>
  2. <?php echo "you should see this if you're an admin"; ?>
  3. <?php
  4. $this->pageTitle = "Buggy Man POrtal - Admin Panel";
  5.  
  6. $this->breadcrumbs=array(
  7.     'Admin Home'=>array('index'),
  8.     'Manage',
  9. );
  10.  
  11. //WHY IS THIS MENU PART NOT APPEARING AT MY UI ?
  12. $this->menu=array(
  13.     array('label'=>'List Post', 'url'=>array('index')),
  14.     array('label'=>'Create Post', 'url'=>array('create')),
  15. );
  16.  
  17.  
  18. ?>
  19.  
  20. <?php else:
  21.     echo "you're not an admin lol";
  22. ?>
  23. <?php endif; ?>
RAW Paste Data
Top