![](https://img-blog.csdnimg.cn/20190905171117331.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
ThinkPHP
Trevor Lan
工欲善其事,必先利其器!
展开
-
ThinkPHP之模板操作
assign与fetch方法 $this->assign('title','learn php'); $this->fetch('index'); // 或者 $title='learn php'; $this->assgin('title',$title); $this->fetch('index'); $this->assign([ 'auther...原创 2019-03-08 21:02:30 · 558 阅读 · 0 评论 -
ThinkPHP之数据库操作
连接数据库 在应用目录或模块目录的database.php配置数据库信息。 return [ // 数据库类型 'type' => 'mysql', // 服务器地址 'hostname' => '127.0.0.1', // 数据库名 'database' => '', ...原创 2019-03-08 19:20:44 · 692 阅读 · 0 评论 -
ThinkPHP5出现“No input file specified”错误
修改.htaccess 打开public/.htaccess文件 将RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 修改成 RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]原创 2019-02-14 11:17:35 · 860 阅读 · 0 评论