我有一个简单但奇怪的问题。我无法为单个字段(anno)设置大小这是我的代码:
$t1 = $tabs->addTab('Esterni');
$f= $t1->add('Form');
$f->setFormClass('horizontal atk-form-horizontal-3col');
$f->addField('line' ,'nome_commerciale','Nome Commerciale');
$f->addField('line','anno','Anno')->setProperty('SIZE',4);
$f->addField('line','esame_petrografico','Esame Petrografico');
if($_GET['more_info']){
$f->setSource('t_materiali_est');
$f->setConditionFromGET('id_mat','more_info');
}
我究竟做错了什么?