I would like to set a global variable called CONTROLLERPATH in my config.ini file and then use that variable in my index.php file to route the GET requests to the correct controller in my directory structure. I am doing the following and F3 cannot make out the value of CONTROLLERPATH.
My config.ini
file:
[global]
DEBUG=3
UI=ui/
CONTROLLERPATH='app/controllers/'
Within my index.php
file:
$f3->config('config.ini');
$f3->route('GET /', CONTROLLERPATH . 'indexController->index');
I have also tried to ditch the config.ini way and setting the value of controllerPath as follows in my index.php file, and it still does not work:
$f3->set('controllerPath', 'app/controllers/');