Closed AndrewSikorsky closed 7 months ago
You don't need Flight to autoload classes if you're using composer. Just follow PSR4.
Yes, path just follows the same thing. So you have to namespace your controller to be namespace controllers;
and then you reference your controller with controllers\MainController
Hi, i'm trying to make it work on nginx, and just want to understand what im doing wrong
So, here is my nginx cfg where i put try_files from your Installation guide:
Im using composer so there is how my index.php looked like:
And this is my routes.php:
And in this case i have an error all the time in Flight version 1.3
And this error in current 2.0.1
And i made it work only when im include my MainController.php directrly in index.php
include dirname(__FILE__) . '/controllers/MainController.php';
and then i addeduse namespace\MainController.php
in routes.php and made an objectAfter this manipulations its worked, but i want to use Flight::path What i am doing wrong here?