小编Nog*_*ard的帖子

在Yii的SEO友好网址

我需要http://example.com/post/view/id/1网址的规则,该规则将显示为http://example.com/post/post_title.而不是身份证号码我想显示帖子名称或标题.

我的配置如下所示:

 'urlManager'=>array(
        'urlFormat'=>'path',
        'rules'=>array(             
            //'<controller:\w+>/<id:\d+>'=>'<controller>/view',
            //'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
            //'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
        ),
                    'showScriptName'=>false,
    ),
Run Code Online (Sandbox Code Playgroud)

php clean-urls yii yii-url-manager

6
推荐指数
1
解决办法
3768
查看次数

从rss提取封装到图像中

我需要从此机箱中提取图像URL.我怎样才能访问它?

["enclosure"]=> object(SimpleXMLElement) {
    ["@attributes"]=> array(3) {
        ["url"]=> string(81) "http://image.jpg"
        ["length"]=> string(4) "5000"
        ["type"]=> string(10) "image/jpeg"
    }
}  
Run Code Online (Sandbox Code Playgroud)

php xml

0
推荐指数
1
解决办法
2617
查看次数

网站的实时测试

我想知道是否有任何网站应用程序,我可以在IE 6.0 - 8.0,Opera,Firefox,Chrome,Safari中测试我的css,javascript和html页面,以便查看它们.

html javascript css

0
推荐指数
1
解决办法
144
查看次数

标签 统计

php ×2

clean-urls ×1

css ×1

html ×1

javascript ×1

xml ×1

yii ×1

yii-url-manager ×1