自動填充功能失效,Why?

浏览:497 发布日期:2013/02/02 分类:求助交流
==================================== Action
<?php
class Act01Action extends Action {
public function index(){
$User=D('Mod01');
$User->execute('delete from cs_temp');

//$data['username']='cc';
$data['fld02']='333';

$User->create();
$User->add($data);
$list = $User->select();
dump($list);
//
}


}
?>
======================================== Model
<?php
class Mod01Model extends Model{

protected $trueTableName='cs_temp';

protected $_auto = array(
array('username', 'time',3,'function'),
);

function xxx($aa){
return "aaa".$aa;
}

}
?>
最佳答案
评论() 相关
后面还有条评论,点击查看>>