CakePHP2.0について ■app/Model/Test.php <?php class Test extends AppModel{public $name = 'test';} ■app/Controller/TestController.php <?php class TestController extends AppController{function index(){$test = $this->Test->find('all');debug($test)}}
データベースはSQLiteに設定してありますが、データベースを使わず、 モデルTest.phpに書いた変数$nameの値をコントローラから読み込みたいのですが Fatal error: Call to a member function find() on a non-object というエラーが出て困ってます どなたかアドバイスお願いします