Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
Since several routes will use the current $user as the PAGE_OBJECT, I'm
just setting it once above most of the logic. Any route that needs
something else can change it.
There's a condition in the setPageObj() function that throws if we
attempt to call it more than once. I'm thinking this can be removed
it's not protecting from much.
|
|
|
|
|
|
Perform minor sanitization on the input $_SERVER['PATH_INFO']. This
commit adds logic that strips empty strings from main's $argv array.
The pass to array_values() is to discard original $tokens array keys
and re-number them starting from zero.
|
|
|
|
|
|
|
|
|
|
|
|
Setup to perform an iteration of development focused on a simpler
implementation and eliminating redundancy in design.
|
|
|
|
* Finished implementing app main function to instanciate root and delegate to it
|
|
|
|
! It has been observed that on server nginx, some of the assumptions from doing similar work on apache have broken down and a more general mechanism must be used to handle paths in the clean-url app.
! New scheme is this: app is invoked with `index.php?path=<absolute path on virtual server>` The app will be configured with its own root location on the virt. server and use logic to dedue the relative path requested from that. Also app will use the configured path to predend to urls linked/directed to during use of the app
|
|
|