ThinkPHP 5正式版发布了一段时间了,听很多人说还不错,学习了下。 因此基于Tp5和Layui开发了一个简单的后台管理系统。 ThinkPHP都数,就不多
svn 重命名文件之后提交文件报错:which is not part of the commit
Windows下使用svn重命名文件之后,单独提交命名后的文件,svn报错 which is not part of the commit;both sides of the move must be committed svn重命名的机制是,删除原本的文件,
PHP使用命名空间时实例化变量类名
实例化变量类名,如果在传统的直接包含文件的方式,并不会存在什么问题, <?php class Test { public function __construct() { echo 333; } } $cls_name = 'Test'; $a = new $cls_name; 代码完全是可以正常运行的. 如果使用
Mysql创建外键#1215 - Cannot add foreign key constraint
Mysql建表的时候创建外键报错 1215 - Cannot add foreign key constraint 建表语句: 表1: CREATE TABLE w_managers ( id int(11) AUTO_INCREMENT, username varchar(60) NOT NULL DEFAULT '', mobile varchar(20) NOT NULL DEFAULT '', email varchar(60) NOT NULL DEFAULT '', password varchar(255) NOT NULL DEFAULT '', disabled tinyint(1) NOT NULL DEFAULT 0, last_login int(11)
PHP:Cannot declare class Menu because the name is already in usr
我在控制器中引入模型,使用过程中报了个错误, Cannot declare class Menu because the name is already in use 代码示例: <?php namespace app\index\controller; use app\index\model\Menu; class Menu { public function test() { echo 333; } } 这是由于,在同一个文件中存在两个