I made an index.php file with this require:
require 'Model\Db.php';
require 'Model\User.php';
require 'Model\Collection\UserCollection.php';
require 'View\ListView.php';
require 'View\FormView.php';
require 'View\MenuView.php';
require 'Controller\Controller.php';
on my laptop there are no problem but on the server it doesn't work. I don't have any warning (and I don't know how to activate them on server), I think is require fault because code after them are not executed.
In my log report I have:
PHP Warning: Cannot modify header information - headers already sent by (output started at /home/svyshloc/public_html/Esome/index.php:15) in /home/svyshloc/public_html/Esome/index.php on line 44
and code bugged is this:
if (($setting_page['basename'] == "Esome")) {
header("location: index.php?page=home");
} else {
$page = $url['page'];
}