摘要: 在模型model文件中,添加public $attributes;即可,$attributes 为要添加的新字段 阅读全文
posted @ 2014-09-15 16:21 Echo正在输入 阅读(1958) 评论(0) 推荐(0)
摘要: 1.在写入session的页面。use yii\web\Session;$session = new Session;$session->open();2.在获取session的页面use yii\web\Session;$session = new Session;$session->open()... 阅读全文
posted @ 2014-09-15 13:27 Echo正在输入 阅读(1954) 评论(0) 推荐(0)