app/plugin/controller/PluginAdminBase.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 人人站CMS
* ============================================================================
* 版权所有 2015-2030 山东康程信息科技有限公司,并保留所有权利。
* 网站地址: http://www.rrzcms.com
* ----------------------------------------------------------------------------
* 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
* ============================================================================
*/
namespace app\plugin\controller;
class PluginAdminBase extends PluginBase
{
//初始化
protected function initialize() {
$this->getAccount();
$this->setTabs();//设置默认页签
}
/*
* 显示带有tab标签的页面
* @param $tabcode 当前tab标签编码
* @param $temp 要渲染的模板
*/
function tab_fetch($tabcode, $temp) {
return $this->page($temp);
}
/**
* 页面输出
* @param string $template
* @return string
* @throws \Exception
*/
function page(string $template = '') {
$body = $this->fetch($template);
$this->assign('body', $body);
$tabs = $this->fetch('admin@base/grid/tabs', ['tabs' => $this->pagedata['tabs'],]);
$this->assign('tabs', $tabs);
return $this->fetch('plugin@:page');
}
/**
* 设置页签
* @param array $tabs
*/
function setTabs($tabs = []) {
if (!$tabs) {
$plugin = $this->getPlugin();
$config = $plugin->info['config'];
if (empty($config['tabs'])) {
$config['tabs'] = $this->pagedata['tabs'] ?: [
['code' => 'index', 'name' => $plugin->info['name'], 'url' => 'Admin/index', 'target' => 'page', 'urltype' => 1]
后面还有 23 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。