think\Controller::display PHP Method

display() protected method

渲染内容输出
protected display ( string $content = '', array $vars = [], array $replace = [], array $config = [] ) : mixed
$content string 模板内容
$vars array 模板输出变量
$replace array 替换内容
$config array 模板参数
return mixed
    protected function display($content = '', $vars = [], $replace = [], $config = [])
    {
        return $this->view->display($content, $vars, $replace, $config);
    }

Usage Example

 public function display($tpl = '')
 {
     $P = $this->vhook_tpl . $tpl . '.php';
     if (file_exists($P)) {
         parent::display($P);
     }
 }
All Usage Examples Of think\Controller::display