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