Php 我们有codeigniter的控制台吗

Php 我们有codeigniter的控制台吗,php,ruby-on-rails,django,codeigniter,codeigniter-2,Php,Ruby On Rails,Django,Codeigniter,Codeigniter 2,我最近一直在研究codeigniter,我很惊讶我没有发现任何与codeigniter控制台相关的。所以基本上我想知道codeigniter中是否有控制台,就像rails和django中一样?没有,没有控制台 与CI附带的控制台最接近的是。它提供: benchmarks Elapsed time of Benchmark points and total execution time config CodeIgniter Config variable

我最近一直在研究codeigniter,我很惊讶我没有发现任何与codeigniter控制台相关的。所以基本上我想知道codeigniter中是否有控制台,就像rails和django中一样?

没有,没有控制台

与CI附带的控制台最接近的是。它提供:

benchmarks Elapsed time of Benchmark points and total execution time config CodeIgniter Config variables controller_info The Controller class and method requested get Any GET data passed in the request http_headers The HTTP headers for the current request memory_usage Amount of memory consumed by the current request, in bytes post Any POST data passed in the request queries Listing of all database queries executed, including execution time uri_string The URI of the current request query_toggle_count The number of queries after which the query block will default to hidden. 基准点的基准运行时间和总执行时间 配置代码点火器配置变量 控制器\u信息请求的控制器类和方法 获取请求中传递的任何get数据 http\u标头当前请求的http标头 内存使用量当前请求消耗的内存量,以字节为单位 发布请求中传递的任何post数据 查询列出所有已执行的数据库查询,包括执行时间 uri\u字符串当前请求的uri query\u toggle\u计算查询块默认为隐藏的查询数。
除了profiler之外,您还可以使用log_message('level','message')函数编写日志。详情请访问

如果您在FireFox或Chrome开发者工具中使用Firebug,则可以使用FireHP在浏览器控制台中编写日志。在浏览器中安装FireHP,下载FireHP库,在将该库与CodeIgniter集成后,您可以使用以下代码将日志写入浏览器控制台

$this->load->library("firephp");
$this->firephp->log("Hello World");

如果你编写脚本来提供功能,那就更好了,否则不行@gwillie没有得到你,什么样的脚本?要激活探查器,请添加“$this->output->enable_profiler(TRUE);”在你的控制器里。