$this->success("", "", $this->view->fetch('common/' . $template . '_ajax'));
}
return $this->view->fetch('/' . $template);
}
protected function jieye($channel){
$config = get_addon_config('cms');
$pagelist = ChannelModel::where('parent_id', $channel->id)->order('weigh desc')
->paginate($channel['pagesize']?$channel['pagesize']:20, $config['pagemode'] == 'simple', ['type' => '\\addons\\cms\\library\\Bootstrap']);
$con = mysqli_connect("localhost","root","f96ec0af449067d8");
mysqli_set_charset($con, "utf8");
$select_db = mysqli_select_db($con,'glisdb');
if (!$select_db) {
die("could not connect to the db:\n" . mysqli_error($con));
}