0
我通過遵循jobeet教程學習敏捷工具箱,但模式生成器不起作用。它會拋出以下錯誤:atk4 4.2.5模式生成器問題
Error in AJAX response: SyntaxError: Unexpected token <
Fatal error: Call to a member function getAllHash() on a non-object in
C:\@Documentos\Personales\CODING\xampp\htdocs\zordon\atk4-addons\mvc\Page\SchemaGenerator.php
on line 77
順便說一下$ this-> add('jUI');已經包含在前端API,模型很簡單:
class Model_Group extends Model_Table {
public $entity_code = 'group';
function init(){
parent::init();
$this->addField('group_id');
$this->addField('name');
$this->addField('post_count');
$this->addField('created_dts')->type('timestamp')->system(true);
$this->addField('updated_dts')->type('timestamp')->system(true);
$this->addField('expires_at')->type('date')->system(true);
}
}
我設法解決這個問題。 解決方案是取消註釋行// $ this-> dbConnect();在前端API。 – roco3d