liliuwei
liliuwei
clover 5027 没有显示usb安装介质
> $this->_config = array_merge($this->_config, config('auth.auth_config')); > > auth_config > user_config 不需要这样处理的,tp5.1可以复制一份auth.php到模块的配置目录里,tp6.0复制到应用的目录里,thinkphp本身就可以针对模块或者应用做不同的配置项的 参考: https://www.kancloud.cn/manual/thinkphp5_1/353951
> $this->_config = array_merge($this->_config, config('auth.auth_config')); > > auth_config > user_config 举例: ├─application (应用目录) │ └─admin(模块目录) │ └─config(模块配置目录) │ ├─app.php 应用配置 │ ├─cache.php 缓存配置 │ ├─cookie.php Cookie配置 │ ├─database.php 数据库配置 │...
> 6.0.2各种报错::: > 1、Call to a member function isJson() on null > 2、Call to a member function isAjax() on null > 3、.... 怎么用的?怎么可能各种报错
> 安装首页安装教程来的 先composer安装,然后在基类use引入,然后在自定义控制器集成基类,然后使用$this->error(),success();然后就报错。代码如下: > 基类: > ` use \liliuwei\think\Jump;` > > 控制器: > `use app\BaseController; > use think\facade\Session; > > class Base extends BaseController > { > public function index(){}...
> > 6.0.2各种报错::: > > 1、Call to a member function isJson() on null > > 2、Call to a member function isAjax() on null > > 3、.... > > 同样的问题 贴代码
> > > > 是的,项目做一大半了。用到__construct的都报错了不能调用这个插件了。有大神解决吗? 建议再熟悉一下trait 的用法,了解一下优先级和冲突的解决 手册地址:https://www.php.net/manual/zh/language.oop5.traits.php
> > > > 是的,项目做一大半了。用到__construct的都报错了不能调用这个插件了。有大神解决吗? 可以考虑用框架带的initialize() 代替 __construct来实现一些功能
> rule表里的type是啥意思啊,大佬 自定义不同类型,例如 1--url 2--菜单 可以看下check方法; 比如type=1的才验证 check($name, $uid, $type=1, $mode='url', $relation='or')
Claude用着还行,期待支持