首页 > php教程 > PHP源码 > ThinkPHP简单网站后台

ThinkPHP简单网站后台

PHP中文网
发布: 2016-05-26 08:18:29
原创
3557 人浏览过

初学ThinkPHP,部署步骤:
ckeditor需要自行下载,对应目录thinkphp-ozgweb/Public/simple/js/ckeditor
thinkphp(完整版)需要自行下载,然后把ThinkPHP复制到本网站的根目录,对应目录thinkphp-ozgweb/ThinkPHP
后台入口:thinkphp-ozgweb/simple/admin/index
后台用户密码都是admin。暂无前台。

1.php代码

<?php
return array(
"web_global_title" => "ozgweb",
"page_size" => 16,
//后台菜单,只支持3级
"admin_menu_list" => [
array(
"id" => 1,
"name" => "后台管理",
"selected" => true,
"child_menu" => array(
array(
"id" => 2,
"name" => "数据管理",
"child_menu" => array(
array(
"id" => 5,
"name" => "分类列表",
"url" => "dataclass_list.html",
"param" => "type:1", #demo type:1,id:2
),
array(
"id" => 6,
"name" => "数据列表",
"url" => "data_list.html",
"param" => "type:1",
)
)
),
array(
"id" => 3,
"name" => "区域管理",
"child_menu" => array(
array(
"id" => 7,
"name" => "区域管理1",
"url" => "art_single.html",
"param" => "id:1",
)
)
),
array(
"id" => 4,
"name" => "管理员管理",
"child_menu" => array(
array(
"id" => 8,
"name" => "修改密码",
"url" => "admin_pwd.html",
),
array(
"id" => 9,
"name" => "管理员列表",
"url" => "admin_list.html",
)
)
)
)
)
],
&#39;DB_TYPE&#39; => &#39;pdo&#39;,
&#39;DB_DSN&#39; => &#39;sqlite:simple.sqlite3&#39;,
&#39;DB_PREFIX&#39; => &#39;simple_&#39;, // 数据库表前缀
&#39;DB_CHARSET&#39; => &#39;utf8&#39;, // 数据库编码默认采用utf8
&#39;DB_FIELDS_CACHE&#39; => false, // 启用字段缓存
);
登录后复制

2.图片

2.jpg

22.jpg

来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门推荐
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板