Witam, zaczynam z obiektówką i mam taki problem. Chcę zrobić routing i wyglada to tak.
index.php
<?php
include ('App/Controllers/PagesController.php');
include ('App/Route/Routing.php');
?>
PagesController.php
<?php
class PagesController
{
public function start()
{
return test;
}
}
?>
i Routing.php
<?php
$params = explode("/", $_SERVER['REQUEST_URI']);
switch ($params[1])
{
case "start": include('Resources/Views/start.php'); break;
default: PagesController::start(); break;
}
?>
I wyskakuje mi taki error: Strict Standards: Non-static method PagesController::start() should not be called statically in /home/u101933895/public_html/App/Route/Routing.php on line 6