18 lines
295 B
PHP
18 lines
295 B
PHP
|
<?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);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|