
yii表单验证[1.1]
model: public $bPoint; public $bCard; /** * @return string the associated database table name */ public function tableNa...
model: public $bPoint; public $bCard; /** * @return string the associated database table name */ public function tableNa...
RT,之前一直以为 ActiveRecord->save 方法 可以当数据不存在时 insert,存在时update,后来在中文官网上看到了这段文档: // 新建一条记录 $model = new Customer; if ($mod...
官方的文档中有一个为空的例子: // ...WHERE (`status` = 10) AND (`type` IS NULL) AND (`id` IN (4, 8, 15)) $query->where([ 'status' =&...
PHP Warning – yii\base\ErrorException mysql_connect(): Access denied for user 'r'@'localhost' (using password: YES) 1. a...
假如说:a.php,定义 namespace yii\a. b.php 里面定义namespace yii\b.我在b.php里面可以使用use yii\a吗? 如果可以的话,那use 的作用域有多广。 再比如说:在同一个服务器上有A站和B...
服务器上直接执行 redis-cli -h localhost -p 7380 顺利进入 但是安装yii2-redis后配置信息如下 'redis' => [ 'class' => 'yii\redis\Connection',...
我在view层使用angularjs的$http.post提交数据到服务器,服务器处理数据后把数据上传到一个叫个推的第三方服务器,在第三方处理完成后,再返回数据给view结果无法接收到数据,这个是什么原因导致的啊?求大神们解答 手动提交,确...
在github上看别人很多都把自己的模块写在vendor里,有什么好处吗? 应该是作为公用模块放在vendor里,同时可能还会放到composer服务器上去,方便管理。 估计你是没体验过那种自己电脑上改完代码,轻松一点,所有服务器上的代码就...
将所有列中的未设置改成自定义的字符,该怎么操作呢 方案一yii\i18n\Formatter 的 nullDisplay 属性设置为你想要的. 这将会使得 所有依赖 yii\i18n\Formatter 的地方受到影响(仅值为null时)方...
因为前台有些操作需要用到model类,和后台操作一致,不想在前台再创建一次model, 有没有什么方法是直接可以调用后台model的。。。。 use 相应model 不行?