关于URL问题
我想要实现一个和codeigniter手册里面的url效果,例如:http://codeigniter.org.cn/user_guide/database/results.html这个样的效果,需要怎么去做,是不是需要在codeigniter里面配置哪些东西
希望给小弟一个提示,谢谢! 添加 URL 后缀
http://codeigniter.org.cn/user_guide/general/urls.html
URI路由
http://codeigniter.org.cn/user_guide/general/routing.html
很欣赏你的签名. 斑竹,我添加url后缀为.html但是我我的url却变成这样
http://localhost:8080/product/index.html/1
这个是我那个index是product的函数用来接收后面1这个值的
我页面的传值方式为:<a href="<?php echo site_url('product/index');?>/<?php echo $row['id'];?>"><?php print $row['id'];?></a>
还请斑竹赐教 回复 3# lnlingyuan
那你用路由的方式. 好的,我正在调试中,谢谢斑竹了:) 酱紫:
<a href="<?php echo site_url('product/index/'.$row['id']);?>"> 你好,打开CodeIgniter_1.7.2\system\application\config\目录下面的config.php将
$config['base_url'] = "http://example.com/";
修改为
$config['base_url'] = "http://codeigniter.org.cn/user_guide/database/";
若你database文件夹下有results.html,就可以通过以下路径打开:
http://codeigniter.org.cn/user_guide/database/results.html 6 楼回答正确! thx 7 floor. hah http://localhost:080/product/web_server/keycer_web_basic_1
http://localhost:8080/产品/web服务器/服务器型号
我想要的是这样的效果,可是我通过1楼版主的方法还是没有实现,还请hex在详细的指点一下
谢谢!
页:
[1]
2