qingjian/app/widget/Common.php

18 lines
295 B
PHP
Raw Normal View History

2021-08-06 10:50:55 +00:00
<?php
namespace app\widget;
use app\model\Article;
use app\model\Category;
use think\facade\View;
class Common
{
protected $data = [];
private function showPage($template='')
{
return View::assign($this->data)->fetch('widget/common/'.$template);
}
}