ATK4 model not found when moving to online

前端 未结 3 1705
-上瘾入骨i
-上瘾入骨i 2020-12-22 00:58

I am developing a website using ATK4, a php framework with jquery.

I have developed this on my laptop using localhost/test1 as the directory and with a local php dat

3条回答
  •  不思量自难忘°
    2020-12-22 01:25

     Class 'model_TaskType' not found in 
    

    you should always use exact capitalization.

    if you have Model_TaskType, it should be Model_TaskType when added to CRUD.

    also this place:

    $this->addField('tasktype_id')->refModel('model_TaskType')->mandatory(true);
    

    should be:

    $this->addField('tasktype_id')->refModel('Model_TaskType')->mandatory(true);
    

    On widows, file name capitalization does not make a difference, where as in linux it does.

提交回复
热议问题