用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1538|回复: 1
收起左侧

[HELP] 为什么我载入一个页面执行两次啊

[复制链接]
发表于 2013-3-1 09:19:08 | 显示全部楼层 |阅读模式
本帖最后由 mervin0502 于 2013-3-1 09:20 编辑

如果在文件中有echo输出的话,只执行一次。
下面时调试代码:
PHP复制代码
DEBUG - 2013-03-01 09:10:39 --> Config Class InitializedDEBUG - 2013-03-01 09:10:39 --> Hooks Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Utf8 Class Initialized
DEBUG - 2013-03-01 09:10:39 --> UTF-8 Support Enabled
DEBUG - 2013-03-01 09:10:39 --> URI Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Router Class Initialized
DEBUG - 2013-03-01 09:10:39 --> No URI present. Default controller set.
DEBUG - 2013-03-01 09:10:39 --> Output Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Security Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Input Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Global POST and COOKIE data sanitized
DEBUG - 2013-03-01 09:10:39 --> Language Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Loader Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Controller Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Helper loaded: url_helper
DEBUG - 2013-03-01 09:10:39 --> Session Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Helper loaded: string_helper
DEBUG - 2013-03-01 09:10:39 --> Database Driver Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Session garbage collection performed.
DEBUG - 2013-03-01 09:10:39 --> Session routines successfully run
DEBUG - 2013-03-01 09:10:39 --> Model Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Model Class Initialized
DEBUG - 2013-03-01 09:10:39 --> Helper loaded: date_helper
DEBUG - 2013-03-01 09:10:39 --> Pagination Class Initialized
DEBUG - 2013-03-01 09:10:39 --> File loaded: apps/blog/views/header_view.php
DEBUG - 2013-03-01 09:10:39 --> File loaded: apps/blog/views/sidebar_view.php
DEBUG - 2013-03-01 09:10:39 --> File loaded: apps/blog/views/footer_view.php
DEBUG - 2013-03-01 09:10:39 --> File loaded: apps/blog/views/archive_view.php
DEBUG - 2013-03-01 09:10:39 --> Final output sent to browser
DEBUG - 2013-03-01 09:10:39 --> Total execution time: 0.0572
DEBUG - 2013-03-01 09:10:48 --> Config Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Hooks Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Utf8 Class Initialized
DEBUG - 2013-03-01 09:10:48 --> UTF-8 Support Enabled
DEBUG - 2013-03-01 09:10:48 --> URI Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Router Class Initialized
DEBUG - 2013-03-01 09:10:48 --> No URI present. Default controller set.
DEBUG - 2013-03-01 09:10:48 --> Output Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Security Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Input Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Global POST and COOKIE data sanitized
DEBUG - 2013-03-01 09:10:48 --> Language Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Loader Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Controller Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Helper loaded: url_helper
DEBUG - 2013-03-01 09:10:48 --> Session Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Helper loaded: string_helper
DEBUG - 2013-03-01 09:10:48 --> Database Driver Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Session routines successfully run
DEBUG - 2013-03-01 09:10:48 --> Model Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Model Class Initialized
DEBUG - 2013-03-01 09:10:48 --> Helper loaded: date_helper
DEBUG - 2013-03-01 09:10:48 --> Pagination Class Initialized
DEBUG - 2013-03-01 09:10:48 --> File loaded: apps/blog/views/header_view.php
DEBUG - 2013-03-01 09:10:48 --> File loaded: apps/blog/views/sidebar_view.php
DEBUG - 2013-03-01 09:10:48 --> File loaded: apps/blog/views/footer_view.php
DEBUG - 2013-03-01 09:10:48 --> File loaded: apps/blog/views/archive_view.php
DEBUG - 2013-03-01 09:10:48 --> Final output sent to browser
DEBUG - 2013-03-01 09:10:48 --> Total execution time: 0.0536
 
复制代码

发表于 2013-3-4 17:19:49 | 显示全部楼层
有什么问题?

本版积分规则