yii?$model

WBOY
Release: 2016-06-20 12:42:51
Original
738 people have browsed it

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



回复讨论(解决方案)

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!