protected function beforeRender($data=null)
    {
        // 非调试模式下，清除缓存区以免影响输出?
        if (!Config::get('debug')) {
            //ob_end_clean();
        }
        $this->clearRenderBuffer();
        
        $data && $this->responseData($data);
        
    }
protected function beforeRender($data=null)
    {
        // 非调试模式下，清除缓存区以免影响输出?
        if (!Config::get('debug')) {
            //ob_end_clean();
        }
        $this->clearRenderBuffer();
        
        $data && $this->responseData($data);
        
    }
protected function beforeRender ( $ data = null ) { // 非调试模式下，清除缓存区以免影响输出? if ( ! Config :: get ( 'debug' ) ) { //ob_end_clean(); } $ this -> clearRenderBuffer ( ) ; $ data && $ this -> responseData ( $ data ) ; }
before render, handle ob and response data.
@param  mixed $data
@return void
before render handle ob and response data .