
tp5
qq_30366755
这个作者很懒,什么都没留下…
展开
-
tp5定时任务
class Goods extends Command { protected function configure() { $this->setName("goods")->setDescription('定时更新商品数据'); } protected function execute(Input $input, Output $ou...原创 2019-01-18 09:52:59 · 877 阅读 · 0 评论 -
tp5+ajax实现图片上传
关键代码: 1.html: <input id="file1" class="ufile" type="file" name="file1" accept="image/gif,image/jpeg,image/jpg,image/png&am原创 2019-02-16 17:28:16 · 1478 阅读 · 0 评论 -
修改日志存放路径
默认存放路径:runtime/log 修改配置文件log.php的path参数, //_DIR_指向当前执行的PHP脚本 return [ // 日志记录方式,内置 file socket 支持扩展 'type' => 'File', // 日志保存目录 'path' =>__DIR__.'/../public/logs',/...原创 2019-03-30 15:35:31 · 3056 阅读 · 0 评论 -
wamp局域网下访问项目
1.D:\tool\wamp\wamp64\bin\apache\apache2.4.27\conf的httpd.conf文件中搜索Require local并改为Require all granted,如下所示 2.修改httpd-vhost.conf文件: 例如 Listen 88 <VirtualHost *:88> ServerName localhost #Ser...原创 2019-04-24 19:21:45 · 818 阅读 · 0 评论 -
thinkphp5.1
1.将一个类绑定到容器中: public function index(Request $request) { Container::set('indexRepository','app\index\Repository\IndexReposiroty');//indexRepository作为绑定Indexpository类实例的别名 $temp=Container::get('inde...原创 2019-06-13 16:44:04 · 189 阅读 · 0 评论