不工作我按照這個教程http://www.youtube.com/watch?v=yAzd7Ig1Wgg得到namepsaces與PSR-0我laravel 4的應用程序,但沒有喜悅工作。我在想什麼?命名空間和PSR-0我laravel 4應用
我的文件夾sttructure
>App
>>|Acme
>>>>|Billing
>>>>>>>|Billing.php
我的帳單類
<?php namespace Acme\Billing;
class Billing {
function __construct()
{
dd('finally!!!');
}
}
我作曲文件
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php",
"app/lib"
],
"psr-0":{
"Acme":"app/"
}
},
和我的路線
Route::get('/', function(){
new Acme\Biling\Billing;
});
我不斷收到此錯誤
Symfony \ Component \ Debug \ Exception \ FatalErrorException
Class 'Acme\Biling\Billing' not found
我有,依然沒有快樂! – nsj