2
自動ロードと名前空間を使用しようとするとこのエラーが発生します。すべての私の名前空間のクラスは、ここでアプリ/ libsに/php namespace class not foundエラー
16-Dec-2016 04:30:50 Europe/Berlin] PHP Fatal error:
Class 'App\libs\App' not found in /Users/mysite/app/page1.php on line 26
下にある私のコードです:
require '../public/vendor/autoload.php';
use App\libs\App;
use App\libs\Auth;
class Controller
{
public $app;
public function __construct()
{
@set_exception_handler([$this, 'exceptionHandler']);
$this->app = new App();
}
}
パス名とクラス名の両方がAppであり、それが問題である可能性があるためです –