/** * Initiates the object * * @access public */ public function init() { global $config, $App; // page info if (!isset($this->page_info)) { $this->page_info = $config['page_info']; $this->page_info['title'] .= ' » ' . ucfirst($App->path['controller']) . ' » ' . ucfirst($App->path['action']); } // theme layout if (!isset($this->layout)) { $this->layout = 'phpscrabble'; } // load Auth component $this->Auth = new AuthComponent(); $this->Auth->init(); }