yii?$model

WBOY
WBOYOriginal
2016-06-20 12:42:51751browse

public function actionUpdate($id) {     $model = $this->loadModel($id);}/*如何向$model里添加一列[challenge_id]下面添加 key: [series]   value:11*/



回复讨论(解决方案)

yii 是如何进行增删该查的?

model的基类中 封装了增删改查的方法,你可以在自己的model类中重构查询和更新操作
列表的查询是根据Model里的search方法实现的,可以重点看下search方法

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn