Request Routing¶
Routing is handled in public_html/index.php by mapping URL segments to files inside includes/modules/.
Lifecycle Summary¶
- Bootstrap Composer autoload and Smarty.
- Parse request path into a module key and key/value parameters.
- Resolve module file from
includes/modules/*.php. - Include shared boot logic from
includes/header.php. - Execute module and render Smarty templates.
Route Resolution Rules¶
- Missing module defaults to
main/main. - If
includes/database_info.phpis missing, routing is forced tosetup. - If route points to a folder (example:
grid), runtime attemptsincludes/modules/grid/grid.php.
Data Passed To Modules¶
- Parsed path pairs are stored in
$GET. - Current module path is tracked in
$GET['currentPage']. - Template variables are assembled in
$tVarsand rendered at the end of the request.