mervin0502 发表于 2013-3-1 09:19:08

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

本帖最后由 mervin0502 于 2013-3-1 09:20 编辑

如果在文件中有echo输出的话,只执行一次。
下面时调试代码:
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

Hex 发表于 2013-3-4 17:19:49

有什么问题?
页: [1]
查看完整版本: 为什么我载入一个页面执行两次啊