【发布时间】:2018-05-16 10:29:14
【问题描述】:
我正在探索 Atk4 用户界面。下面我尝试使用带有多个 Table 视图(带有数组数据)的 View,但是 atk4 显示致命错误:Attempting to initialize twice。
$mainDiv = new \atk4\ui\View();
$table = new \atk4\ui\Table(['celled' => true]);
$table->setSource([['test'=>5]]);
$mainDiv->add($table);
$app->layout->add($mainDiv);
这是一个错误还是我做错了什么?
【问题讨论】: