我正在设置一个带有内联字段的网格,几乎与演示中的示例相同,但我只是不断收到错误:无法包含RenderObjectSuccess.php 内联字段中的值。我做错了什么?
class page_alumnos_pago extends Page {
function init(){
parent::init();
$this->api->stickyGET('id');
$mAlumno=$this->add('Model_Alumno')->loadData($_GET['id']);
$g = $this->add('Grid');
$g->addColumn('date','fechaVencimiento');
$g->addColumn('text','concepto');
$g->addColumn('money','monto');
$g->addColumn('inline','temp_pago');
$g->setSource('programaPago');
$g->dq->where('alumno_id',$_GET['id']);
}
}
这是我的ProgramaPago模型:
class Model_ProgramaPago extends Model_Table {
public $entity_code='programaPago';
function init(){
parent::init();
$this->addField('alumno_id')->caption('Alumno')->refModel('Model_Alumno')->mandatory(true);
$this->addField('fechaVencimiento')->caption('Fecha de Vencimiento')->type('date')->mandatory(true);
$this->addField('monto')->caption('Monto')->type('money')->mandatory(true);
$this->addField('concepto')->caption('concepto')->type('text')->mandatory(true);
}
}
答案 0 :(得分:0)
呃,那是一个错误。
如果修复有效,请告诉我。