Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-08-18Homologates views behavior and controller ClassNamesAmenadiel
- Every view (src/views/*.php) will declare a $do_render variable as false - If the view isn't included from inside a route, it will require lib.inc.php and set $do_render to true - The view will instance its corresponding controller - If the value of $do_render is true, the view will also call the render() method on the instance - If the value of $do_render is false, then the instance can be grabbed from inside a route to capture its output and print it using the $response object - Views than included dashes or underscores have been renamed to just lowercase characters - Their corresponding controllers have been renames as <view filename with first character in Uppercase>Controller. For example, tables.php instances TablesController. - Using a Slim Middleware, the $container gains properties requestobj and responseobj, due to the fact that $container->request and $container->response are frozen objects which do not contain properties such as parameters and route information. - Using requestobj and responseobj, the container property used to instance controllers can return a response method directly - A new route with pattern /src/views/{subject} has been created. It instances the respective controller and returns its render method (this is a WIP) - Codeception has been added to the composer dev-dependencies. A *make test* task has been added to Makefile and will run basic unit tests. Eventually, more tests will be added. - TreeController, as called when action is *tree* or *subtree* will return a proper response object with content type xml, if inside a route.