diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-11-12 11:36:20 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-11-12 11:36:20 +0000 |
commit | 6e42f3702b38f97a1a436d30310a0e6c4faa5145 (patch) | |
tree | ed04426dcca7331b912904d636fb97abbae46fdb /app.php | |
parent | c36f156acaff30b9c512a022484f80fbfb237c95 (diff) | |
download | www-6e42f3702b38f97a1a436d30310a0e6c4faa5145.tar www-6e42f3702b38f97a1a436d30310a0e6c4faa5145.tar.gz www-6e42f3702b38f97a1a436d30310a0e6c4faa5145.tar.bz2 www-6e42f3702b38f97a1a436d30310a0e6c4faa5145.tar.xz www-6e42f3702b38f97a1a436d30310a0e6c4faa5145.zip |
pinq is a new controller-based framework for www.m.o
Diffstat (limited to 'app.php')
-rw-r--r-- | app.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app.php b/app.php new file mode 100644 index 000000000..43323dbc6 --- /dev/null +++ b/app.php @@ -0,0 +1,32 @@ +<?php +/** + * Transition controller for www.mageia.org: + * we are moving from a simple site where each page is called by its own script file + * to a site where requests are managed and dispatched by a single controller. + * + * But, we do it step by step, without migrating/breaking everything at once. + * See comments below. + * + * PHP version 5.4 + * + * @category Mageia + * @package Mageia\Web\www + * @author rda <rda@mageia.org> + * @license http://www.gnu.org/licenses/gpl-2.0.html GPL-2+ + * @link http://www.mageia.org/ + * +*/ + +require 'lib/Pinq/Controller.php'; +require 'lib/Pinq/App.php'; + +$pc = new Pinq_Controller(__DIR__, $_SERVER); +$pc->init(); + +$routes = array( +// 'downloads' => 'MGA_Downloads' +); + +$pc->run($routes); + + |