easychen / lazyrest4 Goto Github PK
View Code? Open in Web Editor NEW基于Web界面的Rest风格API生成器For LazyPHP4
License: GNU General Public License v2.0
基于Web界面的Rest风格API生成器For LazyPHP4
License: GNU General Public License v2.0
我把它放在本地根目录的lazyrest4文件中,然后各种报错,一点点改代码(好了,配到一半觉得太蠢了,路径太多改不了),尝试改htaccess文件
RewriteRule ^(.*)(css|js|gif|jpg|jpeg|txt|png)$ /lazyrest4/$1$2
RewriteCond %{REQUEST_URI} !^/lazyrest4/
RewriteBase /lazyrest4
几款都试过了_(:зゝ∠)_
我可能比较智障,
很少配置htaccess,
认真求教(认真脸),
希望得到回复!thanks!
直接登录提示这个错误
template error -file /data/server/www/server/view/ajax/info.tpl.php not exists
nginx 下直接按照步骤执行出错了
完成后访问跳转到 xxx.com/login 提示404
直接放sql吧
CREATE TABLE IF NOT EXISTS code
(
id
int(11) NOT NULL COMMENT '序号',
code
text NOT NULL COMMENT '代码',
name
varchar(64) NOT NULL COMMENT '名称',
uid
int(11) NOT NULL COMMENT '用户ID',
uname
varchar(32) NOT NULL COMMENT '用户名',
create_at
int(11) NOT NULL COMMENT '创建时间',
private
tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否私有'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
user
CREATE TABLE IF NOT EXISTS user
(
id
int(11) NOT NULL COMMENT '序号',
email
varchar(64) NOT NULL COMMENT '电子邮箱',
name
varchar(32) NOT NULL COMMENT '名字',
password
varchar(32) NOT NULL COMMENT '密码',
level
tinyint(4) NOT NULL DEFAULT '0' COMMENT '级别'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
code
ALTER TABLE code
ADD PRIMARY KEY (id
);
user
ALTER TABLE user
ADD PRIMARY KEY (id
);
Not Found
The requested URL /login was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
我查了一下LR4确实没有这个目录,是不是我什么没有配置好?
浏览器错误如下:
Not Found
The requested URL /login was not found on this server.
lazyrest4可以在php7.X上运行吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.