Guest User

Untitled

a guest
May 21st, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.23 KB | None | 0 0
  1. <?php
  2. App::uses('Controller', 'Controller');
  3. class AppController extends Controller {
  4.     var $components = array('Auth');
  5.     public function beforeFilter(){
  6.         $this->set("isadmin", $this->Auth->user("typeuser_id"));
  7.        
  8.     }
  9. }
  10. ?>
Add Comment
Please, Sign In to add comment