我有一个项目,我使用 Composer 并通过它导入很多东西......我需要在我的索引(项目的根目录)中使用 autoload.php,并且 istead Slim、Mongo、Twig 工作得很好。但是当我调用一个 Respect/Validation 类时它不起作用;如果我只是使用尊重/验证错误是:
Class 'Respect\Validation\Validator' not found in (path of file when i need it).
如果我尝试在这里也要求 autoload.php 错误是:
**Warning**: require_once(vendor/autoload.php): failed to open stream: No such file or directory in (path of file when i need it)
**Fatal error**: require_once(): Failed opening required 'vendor/autoload.php' (include_path='.;C:\xampp\php\PEAR') in (path of file when i need it)