摘要:
安装yii2-date-picker-widget插件链接地址 https://github.com/2amigos/yii2-date-picker-widget修改index.php文件#code ...us... 阅读全文
posted @ 2015-06-09 11:20
开源
阅读(106)
评论(0)
推荐(0)
摘要:
1.在companies表里面添加一个名字为logo类型varchar(255)字段 2.修改models下的companies.php文件class Companies extends \yii\db\Acti... 阅读全文
posted @ 2015-06-09 11:19
开源
阅读(255)
评论(0)
推荐(0)
摘要:
1.修改index.phpuse yii\bootstrap \Modal;#code ... \yii \helpers\ Url::to ('index.php?r=branches/create') ... 阅读全文
posted @ 2015-06-09 11:18
开源
阅读(2530)
评论(0)
推荐(0)
摘要:
修改index.php,加上‘rowOptions’属性,实现回调的方法 下面的例子实现了:如果这行的branch_status 属性的值是inactive显示的背景是粉红色否则显示绿色 $dataProvid... 阅读全文
posted @ 2015-06-09 11:18
开源
阅读(138)
评论(0)
推荐(0)
摘要:
在gii中生成model文件AuthItem.php和AuthAssignment.php修改SignupForm文件class SignupForm extends Model{# code...public ... 阅读全文
posted @ 2015-06-09 11:17
开源
阅读(318)
评论(0)
推荐(0)
摘要:
修改models下的companies.php /*** @inheritdoc*/public function rules(){ return [ [['company_name' , ... 阅读全文
posted @ 2015-06-09 11:16
开源
阅读(293)
评论(0)
推荐(0)
摘要:
php页面的代码:registerJs( $script);?>控制器的代码:use yii\helpers \Json;class LocationsController extends Controller{... 阅读全文
posted @ 2015-06-09 11:15
开源
阅读(311)
评论(0)
推荐(0)

浙公网安备 33010602011771号