首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > 路线为PHP

路线为PHP

  • 资源大小:16.77 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: php mvc routes restful

资 源 简 介

Update in progress (2011-02-23) About `RouteMap` is an implementation of Rails like routes system for mapping URLs to controllers/actions and generating URLs. Useful even for code which doesn"t use MVC pattern. This particular implementation is inspired by Pylons" Routes2 system adapted to PHP5. Basically, you map an URL to some method. e.g. http://example.net/index.php?archive/2008/01/01 or http://example.net/archive/2008/01/01 (with URL rewriting) could map to a single method call News::show("2008", "01", "01"); where "route" is represented by "archive/:year/:month/:day" and year, month, and day denote "route arguments". For each route, you decide which action should be executed. See Manual fo

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP