WingsMan

WingsMan

取Yii求易,用之易己。

  • 财富值105
  • 威望值0
  • 总积分145

个人信息

  • 2015-07-14 已签到
    连续签到1天,获得了5个金钱
  • 回复了 的回复
    <a href="/product.html?id=<?php echo $row['product_id'];?>" target="_blank"><?php echo GlobalFunc::globalSubstr($row['name'],10);?></a>
    

    代码在回复里看不到,

    嗯,谢谢你,我试试去,你是好人,谢谢啦。

  • 回复了 的回复
    <a href="/product.html?id=<?php echo $row['product_id'];?>" target="_blank"><?php echo GlobalFunc::globalSubstr($row['name'],10);?></a>
    

    代码在回复里看不到,

    使用CHtml::link会好点吧?还是使用你说的'Url::to'或者'createUrl'?

  • 回复了 的回复
    'rules'=>array(
        'sites'=>'site/index',
    ),
    

    这一句是必须得么?

    是不是应该用'Url::to'或者'createUrl'生成链接?

  • <a href="/product.html?id=<?php echo $row['product_id'];?>" target="_blank"><?php echo GlobalFunc::globalSubstr($row['name'],10);?></a>
    

    代码在回复里看不到,

  • 回复了 的回复
    'rules'=>array(
        'sites'=>'site/index',
    ),
    

    这一句是必须得么?

    - -!!大部分是这样的:<a href="/product.html?id=<?php echo $row['product_id'];?>"

  • 回复了 的回复
    'rules'=>array(
        'sites'=>'site/index',
    ),
    

    这一句是必须得么?

    我设置了这一条以后,会我请求moduleID/controllerID/actionID这样的路由的actionID后面加".html",但是我在视图里有写了/controllerID/actionID.html的链接却出现不能访问的提示,这个又是因为什么?提示是:Unable to resolve the request "order/index.html".这个异常是有YiiBase、CWebApplication等一些框架里的代码抛出来的。

  • 回复了 的回复
    'rules'=>array(
        'sites'=>'site/index',
    ),
    

    这一句是必须得么?

    谢谢你,还有个问题:'urlSuffix'=>'.html',这一句一般在什么时候使用?

助理 等级规则
145/200
资料完整度
70/100
用户活跃度
0/100

Ta的关注

2

Ta的粉丝

0

Ta的访客

3