2
定义新型号来源:http://agiletoolkit.org/learn/understand/model/add如何ATK4
class Model_MyModel extends Model_Table {
function init(){
parent::init();
$this->addField('name');
}
}
来源:http://agiletoolkit.org/intro/models
class Model_MyModel extends Model_Table {
function defineFields(){
parent::defineFields();
$this->addField('name');
}
}
哪个是正确的?有什么不同?
感谢您清理那个 – BlueBiscuit