First release of domframework
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1207 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
16
examples/blog/index.php
Normal file
16
examples/blog/index.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
require_once ("domframework/route.php");
|
||||
require_once ("domframework/renderer.php");
|
||||
$route = new route ();
|
||||
$route->debug =0 ;
|
||||
$res = $route->routingCollection (array (
|
||||
//"" => array ("route", "redirect", "/1", FALSE),
|
||||
"" => array ("blog", "listingHtml"),
|
||||
"{page}.xml" => array ("blog", "getXml", "{page}"),
|
||||
"{page}.html" => array ("blog", "getHtml", "{page}"),
|
||||
"{page}.csv" => array ("blog", "getCsv", "{page}"),
|
||||
"{page}.json" => array ("blog", "getJson", "{page}"),
|
||||
"{page}.txt" => array ("blog", "getTxt", "{page}"),
|
||||
"{page}" => array ("blog", "getHtml", "{page}"),
|
||||
));
|
||||
echo "404 !";
|
||||
Reference in New Issue
Block a user