127.0.0.1 - - "GET /hode/index.php/house/house/update_estate/images/mail_leftbg.gif HTTP/1.1" 200 13073
127.0.0.1 - - "GET /hode/index.php/house/house/update_estate/images/buttom_left2.gif HTTP/1.1" 200 13073
127.0.0.1 - - "GET /hode/index.php/house/house/update_estate/images/content-bg.gif HTTP/1.1" 200 13073
127.0.0.1 - - "GET /hode/index.php/house/house/update_estate/images/buttom_bgs.gif HTTP/1.1" 200 13073
127.0.0.1 - - "GET /hode/index.php/house/house/update_estate/images/news-title-bg.gif HTTP/1.1" 200 13073
127.0.0.1 - - "GET /hode/index.php/house/house/update_estate/images/buttom_right2.gif HTTP/1.1" 200 13073
因为我的页面中对图片的引用用的是相对地址,而在读取页面的时候CI是以控制层的所在目录来读取的,所以对图片的每一次读取都变成了对控制器的读取,如果有插值的话也就会插入多次了,后来改成绝对地址就没有问题了。
谢谢各位了~~ 而至于为什么添加了参数后就会出现这个问题,而没有添加的话就不会,我觉得可能是因为在没有添加参数的时候CI会认为这个地址是无效的而不运行,而如果添加了参数则会把方法后面的字段理解为参数来运行。 呵呵,在 CI 里要坚决使用绝对 URL,这个论坛里已经讨论很多次了。{:soso_e100:}
页:
1
[2]