|
7 vuotta sitten | |
---|---|---|
application | 7 vuotta sitten | |
bin | 7 vuotta sitten | |
config | 7 vuotta sitten | |
extend | 7 vuotta sitten | |
route | 7 vuotta sitten | |
static | 7 vuotta sitten | |
thinkphp | 7 vuotta sitten | |
vendor | 7 vuotta sitten | |
.gitattributes | 8 vuotta sitten | |
.gitignore | 7 vuotta sitten | |
.htaccess | 7 vuotta sitten | |
LICENSE | 8 vuotta sitten | |
README.md | 7 vuotta sitten | |
admin_v3.sql | 7 vuotta sitten | |
composer.json | 7 vuotta sitten | |
index.php | 7 vuotta sitten | |
think | 7 vuotta sitten |
认真看看文档可能会对你的开发有所帮助哦!
文档地址:ThinkAdmin 开发文档
PHP开发技术交流(QQ群 513350915)
ThinkAdmin 为开源项目,允许把它用于任何地方,不受任何约束,欢迎 fork 项目。
- GitHub 托管地址:https://github.com/zoujingli/ThinkAdmin
- OSChina 托管地址:http://git.oschina.net/zoujingli/Think.Admin
对于新版本的微信模块使用的是授权模式,需要用到 ThinkService 项目。
其安装与 ThinkAdmin 相似,这里就不多说了。具体可以参见微信开放平台官网 https://open.weixin.qq.com ,ThinkService 后台具体可以配置对应参数。
ThinkAdmin 与 ThinkService 对接是通过 WebService 通信的,因此运行环境需要安装 Soap 模块支持。
RBAC
权限管理(用户、权限、节点、菜单控制)Http
服务组件(原生CURL
封装,兼容PHP多版本)
- PHP 版本不低于 PHP5.6,推荐使用 PHP7 以达到最优效果;
- 需开启 PATHINFO,不再支持 ThinkPHP 的 URL 兼容模式运行(源于如何优雅的展示)。
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
Nginx
server {
listen 80;
server_name wealth.demo.cuci.cc;
root /home/wwwroot/ThinkAdmin;
index index.php index.html index.htm;
add_header X-Powered-Host $hostname;
fastcgi_hide_header X-Powered-By;
if (!-e $request_filename) {
rewrite ^/(.+?\.php)/?(.*)$ /$1/$2 last;
rewrite ^/(.*)$ /index.php/$1 last;
}
location ~ \.php($|/){
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
set $real_script_name $fastcgi_script_name;
if ($real_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
}
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param PHP_VALUE open_basedir=$document_root:/tmp/:/proc/;
access_log /home/wwwlog/domain_access.log access;
error_log /home/wwwlog/domain_error.log error;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
access_log off;
error_log off;
expires 30d;
}
location ~ .*\.(js|css)?$ {
access_log off;
error_log off;
expires 12h;
}
}
MIT
协议发布,任何人可以用在任何地方,不受约束