![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ThinkPHP
program-boy
热爱生活,热爱代码
展开
-
ThinkPHP5实现定时任务
定时任务,THinkPHP5原创 2017-05-18 16:17:38 · 12738 阅读 · 0 评论 -
ThinkPHP5模板分离
只需要2步就可以 1.修改config.php的参数template参数,增加view_base参数 ‘template’ => [ // 模板引擎类型 支持 php think 支持扩展 ‘type’ => ‘Think’, // 模板路径 ‘view_path’ => ”, // 模板后缀转载 2017-11-14 23:24:17 · 1641 阅读 · 0 评论 -
thinkphp5 静态资源文件引入
例如引入admin.css 1.只需要把admin.css与index.php同级目录,调用直接写/static/css/style.css,不过这种写法必须要配置站点域名 2.需要在config.php里配置view_replace_str参数 ‘view_replace_str’ => [ ‘CSS‘=>’/add/public/static/css’,原创 2017-11-14 23:44:42 · 10972 阅读 · 1 评论 -
出现Internal Server Error错误
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, admin@sky00.com and inform them of t原创 2017-11-14 23:55:34 · 143588 阅读 · 14 评论 -
thinkPHP5 写接口需要注意的细节
1.使用ThinkPHP5进行接口编写时的规范 前后台在进行数据交互时首先要规定好请求的方式get ,post,put,delete 前台使用ajax发送请求时,需要发送参数,需要对参数以及请求方式进行验证,例如是不是为空,存在,为整数,数字,字符串,在使用ThinkPHP时可以使用validate进行验证 可以使用Request::instance()->ispost,Request::in原创 2017-05-18 15:38:16 · 3742 阅读 · 0 评论 -
thinkphp开发 时遇到如下问题
php在网络请求时间歇性出现php_network_getaddresses:getaddrinfo name or service unkonwn问题这是因为dns解析服务问题,服务端重启apach,php即可如果还解决不了,需要在hosts中设置域名...原创 2018-10-29 11:54:18 · 421 阅读 · 0 评论