public function __construct($request, $response, $params = NULL) { parent::__construct($request, $response, $params); $this->config->setDefault(array('pageSize' => $this->options->pageSize, 'type' => NULL, 'checkPermalink' => true)); /** 用于判断是路由调用还是外部调用 */ if (NULL == $this->config->type) { $this->config->type = Router::$current; } else { $this->_invokeFromOutside = true; } /** 用于判断是否为feed调用 */ if ($this->config->isFeed) { $this->_invokeByFeed = true; } /** 初始化皮肤路径 */ $this->_themeDir = rtrim($this->options->themeFile($this->options->theme, '/'), '/'); /** 处理feed模式 **/ if ('feed' == $this->config->type) { } }