Giter Site home page Giter Site logo

easychen / lazyrest4 Goto Github PK

View Code? Open in Web Editor NEW
241.0 17.0 47.0 1.81 MB

基于Web界面的Rest风格API生成器For LazyPHP4

License: GNU General Public License v2.0

PHP 84.70% HTML 2.72% CSS 4.70% JavaScript 3.82% Gherkin 0.12% Hack 0.75% Less 3.18%

lazyrest4's Issues

配置无能

我把它放在本地根目录的lazyrest4文件中,然后各种报错,一点点改代码(好了,配到一半觉得太蠢了,路径太多改不了),尝试改htaccess文件
RewriteRule ^(.*)(css|js|gif|jpg|jpeg|txt|png)$ /lazyrest4/$1$2
RewriteCond %{REQUEST_URI} !^/lazyrest4/
RewriteBase /lazyrest4
几款都试过了_(:зゝ∠)_
我可能比较智障,
很少配置htaccess,
认真求教(认真脸),
希望得到回复!thanks!

说明里的两个表的截图是同一个了。。。

直接放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;

-- Indexes for dumped tables

-- Indexes for table code

ALTER TABLE code
ADD PRIMARY KEY (id);

-- Indexes for table user

ALTER TABLE user
ADD PRIMARY KEY (id);

找不到login是什么情况

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.

安装完成之后出现404

我查了一下LR4确实没有这个目录,是不是我什么没有配置好?
浏览器错误如下:
Not Found
The requested URL /login was not found on this server.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.