一个有关 site_url()的问题
我在view里边的一个a连接是这样写的<a href="<?=site_url('main/account_book')?>">Account Book</a>
然后在页面上点击的时候, url会去到 http://localhost/phoenix/<?=site_url%28%27main/account_book%27%29?>
当然localhost/phoenix是我的base url.
这个站是以前做的,没问题, 现在不知道为什么会这样.
我的系统是win7, wamp+mysql5 http://localhost/phoenix/<?=site_url("main/account_book")?>是这样 , 刚才没改好 你的php可能不支持短标签 试一下从config文件里面把下面改成true
$config['rewrite_short_tags'] = TRUE; 用完整标签看看能不能连再设置配置文件。
<a href="<?php echo site_url('main/account_book');?>">Account Book</a>
页:
[1]