/**
 * beforeFilter callback
 *
 * @return void
 **/
	public function beforeFilter() {
		parent::beforeFilter();
		if (isset($this->Toolbar)) {
			$this->Components->disable('Toolbar');
		}
		$this->helpers['DebugKit.Toolbar']['cacheKey'] = $this->Toolbar->cacheKey;
		$this->helpers['DebugKit.Toolbar']['cacheConfig'] = 'debug_kit';
	}
 /**
  * beforeFilter callback
  *
  * @return void
  **/
 function beforeFilter()
 {
     parent::beforeFilter();
     if (isset($this->Toolbar)) {
         $this->Toolbar->enabled = false;
     }
     $this->helpers['DebugKit.Toolbar']['cacheKey'] = $this->Toolbar->cacheKey;
     $this->helpers['DebugKit.Toolbar']['cacheConfig'] = 'debug_kit';
 }
Esempio n. 3
0
 /**
  * beforeFilter callback
  *
  * @return void
  */
 public function beforeFilter()
 {
     parent::beforeFilter();
     if (isset($this->Toolbar)) {
         $this->Components->disable('Toolbar');
     }
     $this->helpers['DebugKit.Toolbar']['cacheKey'] = $this->Toolbar->cacheKey;
     $this->helpers['DebugKit.Toolbar']['cacheConfig'] = 'debug_kit';
     if (isset($this->Auth) && method_exists($this->Auth, 'mapActions')) {
         $this->Auth->mapActions(array('read' => array('history_state', 'sql_explain')));
     }
 }