/** * 执行acloud的相关 * * @param AbstractWindFrontController $front */ public function runApps($front = null) { Wind::import('LIB:compile.acloud.PwAcloudFilter'); $front->registeFilter(new PwAcloudFilter()); $controller = Wind::getComponent('router')->getController(); require_once Wind::getRealPath('ACLOUD:aCloud'); ACloudAppGuiding::runApps($controller); }
public function run() { $_compress = $this->_config['web-apps'][$this->_appName]['compress']; if (!$_compress || !ob_start('ob_gzhandler')) { ob_start(); } parent::run(); ob_end_flush(); }
protected function showErrorMessage($message, $file, $line, $trace, $errorcode) { parent::showErrorMessage($message, $file, $line, $trace, $errorcode); if (!empty($this->_config[$this->_appName]['errorDir'])) { $errDir = $this->_config[$this->_appName]['errorDir']; } else { $errDir = 'WIND:web.view'; } $errDir = Wind::getRealPath($errDir, false); if (is_file($errDir . '/' . $errorcode . '.htm')) { $this->_errPage = $errorcode; } ob_start(); require $errDir . '/' . $this->_errPage . '.htm'; exit(ob_get_clean()); }
public function run() { parent::run(); exit("Completely Done~\r\n"); }
/** * 返回当前的app应用 * * @param string $appName * @see WindFrontController::getApp() * @return WindWebApplication */ public static function getApp() { return self::$_front->getApp(); }