
@property这样的注释格式,有什么作用,可以一键注释成这种格式吗?[2.0]
/** * This is the model class for table "user". * * @property integer $id * @property string $username * @property strin...
/** * This is the model class for table "user". * * @property integer $id * @property string $username * @property strin...
发个问题真蛋疼,关闭了又不能删除,写了整整一篇忘记点发布就关了,又得重新写。事情是这样的:我的老大叫我在网站里实现qq第三方登录的功能,用腾讯官方给的SDK,很容易就实现了(这也证明我的流程是没有错的),但是因为项目框架的用yii2,所以,...
yii2作为后台如何通过接口写移动端的第三方登录,如qq,微信,求指点 跟纯PHp写思路应该一样吧
class HomePageController extends Controller{ public function actionIndex(){ return $this->render('index'); } } 这样访问:h...
$data = Chat::find()->where(['>', 'id', 45],'uid'=>1])->asArray()->all(); 要怎么改呢? 还是预处理的更好用如果先看到底运行的原生sql是...
Yii::$app 和 Html::encode() 请问双冒号后一个带$一个不带,都是什么意思呢? 访问类的静态成员和执行类的静态方法
在grid网格视图中如何显示不同颜色的字体??例如: 有关更多GridVierw的操作可以参考 yii2 GridView常见操作'format' => 'html', 就是这个!
安装后访问requirements.php报错,提示没有文件夹,查看了下确实没有,通过composer update之后也没有 composer版本1.0.2 完全按照官网手册进行安装的,大神帮忙给看一下 xindeMacBook-Air:...
代码如下 public function rules() { return [ [['phone', 'password'], 'required'], [['phone', 'password'], 'trim'], ['phone', ...
1.1设置separator的方法好像已经不行了,请问2要怎么将radio横向展示呢?