数据模型文件
public function creeatenews(){
//初始化,定义操作插入数据
$this->__construct('insert');
//赋值
$this->title = '标题7fdsaf77';
$this->content = '内容';
$this->type = '类型';
$this->user = '作者';
$this->status = '1';
$this->create_data = '2012-10-12';
$data=array('id','title','content','type','user','status','create_data');//要操作的字段
$this->insert($data);//插入数据操作
$this->update($data);//更新数据操作
}