摘要:
数据的查询 /** * 查询正在使用的数据 model 层 */ public function selectdata(){ return $this->find()->andWhere(['about_del' => 0 , 'about_status' => 1])->all(); /* //多 阅读全文
摘要:
修改数据 /** * 根据获取到的数据的id 去编辑对应的数据 controller层 */ //引入对应的model use app\models\About; //定义一个方法 经行修改 public function actionEdit(){ //判断是否是提交过来的数据 $request 阅读全文
摘要:
增加数据 /** * 添加数据 controller 层 */ //引入对应的model类 use app\models\About; //定义对应的方法固定的actionxxxx -- 增加数据 public function actionAdd(){ //判断是否是提交过来的数据 $reques 阅读全文