詳しくは調べていないので自分用メモ
public $uses = array(
'Hoge',
);
$this->Hoge->find();
$fuga = Hoge::fuga;
上記はOK
public $uses = array(
'Hoge',
);
$fuga = Hoge::fuga;
この場合はエラー
App::uses('Hoge', 'Model');
$fuga = Hoge::fuga;
これもOK
Go to list of users who liked
More than 3 years have passed since last update.
詳しくは調べていないので自分用メモ
public $uses = array(
'Hoge',
);
$this->Hoge->find();
$fuga = Hoge::fuga;
上記はOK
public $uses = array(
'Hoge',
);
$fuga = Hoge::fuga;
この場合はエラー
App::uses('Hoge', 'Model');
$fuga = Hoge::fuga;
これもOK
Register as a new user and use Qiita more conveniently
Go to list of users who liked