Questions tagged as 'autoload'

0
answers

I can not mount autoload with PSR-4 for multiple folders and subfolders

I'm trying to pass a project to MVC and then created the following structure:    pasta_projeto -App --Controllers ---Classes --Models ---Classes --views ---html -vendor --Controller ---Action.php --init ---Bootrstrap.php I am creating the...
asked by 20.03.2018 / 16:53
1
answer

Autoload in JavaScript

I'm starting in Front End and wanted to know the best technique and tool / library to load dependency files in JavaScript . I feel that I could just add a .js file in my html and in this file control the loading of dependencies on it. Should...
asked by 10.10.2017 / 19:10
0
answers

Class not found in namespace

I'm trying to use a class by using the namespace, but it always generates this error:    Fatal error: Uncaught Error: Class 'Database\connect' not found in /opt/lampp/htdocs/Estudando/app/Usuario/Controller/usuarioController.php:13 Stack t...
asked by 07.10.2017 / 16:20
1
answer

My autoload by the composer is not working

I'm learning to do autoload using the composer, but I'm getting the following error while performing the tests:    Fatal error: Class 'App \ Model \ Database' not found in /var/www/Library/index.php on line 5 It's like he's not finding th...
asked by 01.07.2017 / 21:23