1024programmer Java Just built a configurable PHPURL route with only 2k http://code.google.com/p/qserouter/

Just built a configurable PHPURL route with only 2k http://code.google.com/p/qserouter/

Just built a configurable PHP URL routing of only 2k http://code.google.com/p/qserouter/

Address: http://code.google.com/p/qserouter/ Just built it this morning :-)


 <?php
 require 'router.php';

 function dump($vars, $label = '', $return = false)
 {
     if (ini_get('html_errors')) {
         $cOntent= "
\n";
         if ($label != '') {
             $content .= "{$label} :\n";
         }
         $content .= htmlspecialchars(print_r($vars, true));
         $content .= "\n

\n";
} else {
$cOntent= $label . " :\n" . print_r($vars, true);
}
if ($return) { return $content; }
echo $content;
return null;
}

$routes = new Router(require('mapping.php'));

$testarr = array(
'/',
'/abc',
'/abc/d',
'/books/13',
'/books/13/java',
'/admin',
'/admin/',
'/admin/abc',
'/admin/abc/d',
);

foreach ($testarr as $item){
dump($routes->filter($_GET,$item),$item);
}

?>

1st Floor
vb2005xu
2012-06-09

http://www.clearbox.hu/index_en.html#4 Very good lightbox effect
2nd Floor
vb2005xu
2012-06-09

http://graphicdesignjunction.com/2011/09/25-latest-jquery-plugins/ jquery extension
3rd floor
vb2005xu
2012-06-09

http://www.qwrap.com/download.html Baidu’s js front-end framework
4th floor
vb2005xu
2012-06-11

http://www.appelsiini.net/projects/viewport
5th Floor
vb2005xu
2012-06-11

http://taffydb.com/
6th floor
vb2005xu
2012-06-11

http://www.gantry-framework.org/
7th floor
vb2005xu
2012-06-13

http://www.pjhome.net/default.asp?cateID=1

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/790141

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索