yii
shaonian1996
这个作者很懒,什么都没留下…
展开
-
yii2—控制器之resquest,response,session,cookie
一 控制器访问 http://127.0.0.1/yii/web/index.php?r=hello/index <?php namespace app\controllers; use yii\web\Controller; class HelloController extends Controller { public function actionInd...原创 2019-02-01 11:49:38 · 721 阅读 · 0 评论 -
yii2—数据模型
单表查询 配置config\db.php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=test', 'username' => 'root', 'password' => '12345...原创 2019-02-01 11:55:25 · 322 阅读 · 0 评论