/** * 风格设置 * * 设置当前页面风格,需要两个参数,$type风格类型,$theme该类型下风格 * * @see WindSimpleController::setTheme() * @param string $type 风格类型(site,space,area...) * @param string $theme 风格别名 */ protected function setTheme($type, $theme) { $themePack = Wekit::C('site', 'theme.' . $type . '.pack'); $themePack = 'THEMES:' . $themePack; if (!$theme) { $theme = Wekit::C('site', 'theme.' . $type . '.default'); } parent::setTheme($theme, $themePack); }
public function run() { parent::run(); throw new Exception("error handled"); }