Good morning, people! I'm having the following problem in my projectx in php:
I created a project with Composer in php where I put php to listen to the public folder from the command prompt. However, when I upload the project to the site or to the xampp htdocs, the result of displaying the index (domain / projectx / public) is white. It does not display anything or any warning. Running with the php server via prompt listening directly to the public folder the project runs normally.
The structure of the project is this (it has an attached image too):
projeto x
-App
-Controller (folder with controllers)
-Model (folder with models)
-View (folder with views)
-Connection (DB connection class)
-Route (Class that manages the routes accessed in the browser and instantiates the necessary controllers)
-public
-.htaccess
-index.php (Application start page that instantiates the Route class to determine the flow of the application)
-vendor
-composer (folder with composer files)
-autoload.php
composer.json
composer.lock
composer.phar
When I include files in the public folder and access directly, the file works normally. That is, the server is listening to all folders.
Could you help me with this? If I have to configure something on the server or in my project? I am new to PHP and would greatly appreciate your help.
Right now, I'm grateful!
Application running on the latest version of Composer. Tested on php version 5.6.40 and 7.1