/** * 显示信息 * @param type $backurl * @param type $message */ function showMessage($backurl, $message) { Doo::loadController('DooController'); $dc = new DooController(); $data = array('backurl' => $backurl, 'sec' => Doo::conf()->SEC, 'message' => $message, 'rootUrl' => Doo::conf()->APP_URL); $dc->renderc('admin/msg', $data); exit; }
/** * @override solo en caso de poner excepciones * @see DooController::render() */ public function renderc($file, $data = null, $enableControllerAccess = false, $includeTagClass = true) { if (!$data && is_array($file)) { $data = $file; } $data = array_merge(array('list' => array(), 'error' => null, 'action' => null), is_array($data) ? $data : array()); if (!is_string($file)) { $file = $this->params['format']; } if (Doo::conf()->DEBUG_ENABLED) { $data['sql'] = Doo::db()->showSQL(); } parent::renderc($file, $data, $enableControllerAccess, $includeTagClass); }