一个简单的YAF框架后台管理系统
Yaf 地址:https://github.com/laruence/php-yaf 请针对自己的php 版本进行安装
鸟哥的官方文档及源码.(http://www.laruence.com/manual/)
#.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
server {
listen ****;
server_name domain.com;
root document_root;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$args;
}
}
使用database.sql,简单的例子,只有一个数据表(增删改查实现)
报错开启关闭在ini中有配置,可以记录为日志文件,需要有写权限。在Error.php实现。