function missingTable($params) { extract($params); $this->controller->plugin = basename(dirname(__FILE__)); $this->controller->layout = 'noswad_error'; $this->controller->viewPath = 'errors'; $this->controller->webroot = $this->_webroot(); $this->controller->set(array('model' => $className, 'table' => $table, 'title' => 'Missing Database Table')); if (in_array($className, array('Aro', 'Aco', 'ArosAco'))) { if ($className == 'ArosAco') { $this->controller->Session->setFlash('The ArosAcos table may be misnamed acos_aros.'); } $this->controller->render('missing_acl_tables'); } else { parent::missingTable($params); } exit; }
function missingTable($params) { $this->controller->layout = "default"; parent::missingTable($params); }