用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3110|回复: 1
收起左侧

路由问题

[复制链接]
发表于 2008-10-21 00:27:26 | 显示全部楼层 |阅读模式
我想用
phpframeworks/eZ-Components/2
访问
phpframeworks/index/eZ-Components/2

我是这么写的
$route['phpframeworks/([a-Z\-]+)/(\d+)'] = "phpframeworks/index/$1/$2";
$route['phpframeworks/([a-Z-]+)/:num'] = "phpframeworks/index/$1/$2";
$route['phpframeworks/([a-Z\-]+)/:num'] = "phpframeworks/index/$1/$2";
都不行
错误:
A PHP Error was encounteredSeverity: Warning
Message:  preg_match() [function.preg-match]: Compilation failed: range out of order in character class at offset 19
Filename: libraries/Router.php
Line Number: 270

A PHP Error was encounteredSeverity: Warning
Message: Cannot modify header information - headers already sent by(output started at/home/content/M/a/x/MaxMortgage/html/frameworks/sys/libraries/Exceptions.php:164)
Filename: errors/error_404.php
Line Number: 1

                        404 Page Not Found                The page you requested was not found.
       



[ 本帖最后由 wood 于 2008-10-21 00:33 编辑 ]
发表于 2008-10-21 02:18:57 | 显示全部楼层
a-Z 这样写好像不对吧?一般都是 a-z
url 里最好不要大小写混用。

本版积分规则