public function initialize()
 {
     parent::initialize();
     $this->loadComponent('RequestHandler');
     $this->loadComponent('Search.Prg', ['actions' => ['index']]);
     $this->set('_serialize', 'output');
 }
Example #2
0
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     $this->viewBuilder()->layout('adminMain');
     //$this->Auth->allow('add','edit');
     $this->Authadmin->deny(['add', 'edit', 'delete', 'index']);
 }
Example #3
0
 public function beforeFilter(Event $event)
 {
     $this->Auth->autoRedirect = FALSE;
     parent::beforeFilter($event);
     $this->viewBuilder()->layout('user_profile');
     $this->Auth->deny(['add', 'index']);
     //$this->Auth->allow('index','add');
     $this->set('userData', $this->Auth->user());
 }
Example #4
0
 public function initializie()
 {
     parent::initializie();
     $this->Auth->allow(['login', 'register']);
     $this->loadComponent('AkkaFacebook.Graph', ['app_id' => '1749197665350898', 'app_secret' => '270ebc5f68ac70bfe8808c3bc8dd234e', 'app_scope' => 'email,public_profile', 'redirect_url' => Router::url(['controller' => 'Users', 'action' => 'login'], TRUE), 'post_login_redirect' => '']);
 }
Example #5
0
 public function initialize()
 {
     parent::initialize();
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Post');
     $this->loadModel('Category');
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Evenement');
 }
 public function initialized()
 {
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Music');
 }
Example #10
0
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     $this->Authadmin->allow('add');
 }
Example #11
0
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Actuality');
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Artiste');
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Articles');
     $this->loadModel('Categorie');
 }
 public function initialize()
 {
     parent::initialize();
     $this->loadComponent('Search.Prg', ['actions' => ['index']]);
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Interview');
 }
 /**
  * Before Filter
  * @param Cake\Event\Event $event The beforeFilter event
  * @return void
  */
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Galbum');
 }
 /**
  * Making sure that we use the Posts plugin's model layer
  *
  * @return void
  */
 public function initialize()
 {
     parent::initialize();
     $this->loadModel('Posts.Posts');
 }