Routes
class Routes
This class pre-process pages to generate some needed information.
Properties
protected array | $searchDir | Array that contains the paths to find the Controllers folder that contains the controllers | |
private Router | $router | Route to manage available routes. |
Methods
__construct(array $dirs)
Models constructor.
checkRoutesControllers()
Check all clases that extends from PageController, an store it to pages table.
instantiateClass(string $namespace, string $className)
Instanciate class and update page data if needed.
Details
at line 42
__construct(array $dirs)
Models constructor.
at line 55
private
checkRoutesControllers()
Check all clases that extends from PageController, an store it to pages table.
We needed to generate the user menu.
TODO: This must be checked only when update/upgrade the core. WARNING: At this moment are generating 3 extra SQL queries per table.
at line 90
private
instantiateClass(string $namespace, string $className)
Instanciate class and update page data if needed.