![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Yii学习
文章平均质量分 86
zmx182051
这个作者很懒,什么都没留下…
展开
-
Yii框架数据连接操作相关学习02(数据关联学习)
在学习了Yii框架的数据关联后,对于多表关联一直不是太理解,查阅了一些资料后,大致明白了一些,下面就大概写下理解的内容。一、先建几张测试表student ( studetnID, name )course ( courseID , name )course_student ( courseStudentID, courseId , studentId )student 和 course 为...原创 2018-03-15 11:34:10 · 180 阅读 · 0 评论 -
Yii框架数据连接操作相关学习01
本次学习内容为《Yii2.0权威指南》中‘配合数据库工作’一节,以下为整理的笔记。一、数据查询 这里所用的数据表是school表,表字段为schoolID(int),name(varchar(20)),remark(varchar(50)) 查找一条记录(返回的是Array) $name = Yii::$app->db->createCommand('Select ...原创 2018-03-13 23:38:01 · 205 阅读 · 0 评论 -
Yii2.0之ECharts折柱混合图学习
最近需要使用图标来进行图表显示,不过又不想将每类数据做单独图表,于是就想到使用混合图表来显示。以下是对ECharts折柱混合图简单的了解使用,以后还会深入学习。1.使用"hisune/echarts-php"插件。2.代码如下:<div id="chart1"> <?php $asset=EchartsAsset::register($this); ...原创 2018-07-06 09:12:10 · 1258 阅读 · 1 评论 -
yii2.0使用modal模态框
最近要使用modal效果,于是参考了一些网上的学习案例,学习记录一下。 1.创建按钮Html::button('控制',[ 'id' =&gt;'data-control', 'title' =&gt; Yii::t('app', '控制'), 'class' =&gt;'...原创 2018-07-14 11:36:08 · 2429 阅读 · 0 评论