为什么我的自动加载.php编辑器不起作用?
2022-08-30 18:18:45
我有一个项目,我使用Composer,我通过它导入很多东西...我需要自动加载.php在我的索引(项目的根)和istead Slim,Mongo,Twig工作得很好。但是,当我调用一类尊重/验证时,它不起作用;如果我只是使用尊重/验证,错误是:
Class 'Respect\Validation\Validator' not found in (path of file when i need it).
如果我尝试在这里也要求自动加载.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)