国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

PHP Class not found
伊謝爾倫
伊謝爾倫 2017-05-16 13:12:19
0
4
384

< /p>

< /p>

The first time I used PHP, I pulled down a project (project address) from github. I created a new index.php, and then wrote the code in the picture. Why do I keep getting errors?
Do you think the path is OK?

< /p>

伊謝爾倫
伊謝爾倫

小伙看你根骨奇佳,潛力無限,來學(xué)PHP伐。

reply all(4)
小葫蘆

You wrote it yourselfindex.php,需要引入venderautoload.php.
If you use a framework, the framework itself has already implemented the class automatic loading and registration mechanism.

大家講道理
https://getcomposer.org/
http://www.phpcomposer.com/

Look at the composer's documentation. vendor is the composer's library directory. If you want to use it directly, you can use a relative directory reference.
General use should be to introduce the autoload.php file in the vendor directory outside the vendor directory

阿神

The autoloading function is not registered and the class is not loaded

Ty80

Quick fix by referencing the namespace at the top of the page

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template