jqueryを使用したphpフレームワークであるATK4を使用してWebサイトを開発しています。
localhost / test1をディレクトリとして使用し、ローカルのphpデータベースを使用して、ラップトップでこれを開発しました。
すべてのディレクトリをオンラインに移動してphpデータベースをウェブホストにインポートすると、ほとんどのページが機能しますが、1つでは、ページの1つでエラーが発生します。
致命的なエラー:クラス'model_TaskType'が/homepages/4/d184034614/htdocs/paperless/atk4/lib/AbstractObject.phpの131行目に見つかりません
AbstractObject.phpで参照されている行は、add関数の一部です。
モデルが存在し、まったく同じコードがローカルホストで機能しています。他のページにもモデルがあり、正常に機能しているように見えます。テーブルは、両方のデータベースでまったく同じ構造になっています。
モデルは、問題のあるページで直接参照されていません。参照されているモデルへのrefModelです。ローカルホストに表示されないパスの問題がここにありますか?
TaskTypeモデルは、このクラスのように見えますModel_TaskType extends Model_Table {public $ entity_code ='vscrum_tasktype'; public $ table_alias ='ty';
function init(){
parent::init();
$this->addField('id')->mandatory(true);
$this->addField('name')->mandatory(true);
$this->addField('budget_code')->mandatory(true);
$this->addField('colour_desc')->refModel('model_Colour');
$this->addField('project_id');
$this->addField('team_id');
$this->addField('company_id');
$this->addCondition('team_id',$this->api->getTeamID());
}
}
問題のあるページに追加されたタスクモデルは次のようになります。
class Model_Task extends Model_Table {
public $entity_code='vscrum_task';
public $table_alias='tk';
function init(){
parent::init();
// debug causes error in Ajax in ATK v4.1.1
// $this->debug(true);
$this->addField('id')->system(true)->visible(false);
$this->addField('story_id')->system(true)->visible(false);
$this->addField('backlog_ref')->system(true)->visible(false);
$this->addField('sprint_id')->system(true)->visible(false);
$this->addField('team_id')->system(true)->visible(false);
$this->addField('status')->defaultValue('I')->visible(false);
$this->addField('task_desc')->mandatory(true)->visible(true);
$this->addField('points')->mandatory(true)->defaultValue(1)->datatype('numeric');
$this->addField('member_id')->mandatory(true)->refModel('model_Member');
// join colour
$this->addRelatedEntity('ty','vscrum_tasktype','tasktype_id','left');
//tasktype
$this->addField('tasktype_id')->refModel('model_TaskType')->mandatory(true);
}
}
たぶん私は何か明らかなことを見逃しました、なぜこれがローカルホストではうまくいくが私のウェブホストでは壊れるかという考えはありますか?