I'm getting started with Kohana and haven't found a way to display session, cookie, post and server variables on a page with the profiler. When there's an exception, the default error view shows you what's wrong and exposes th开发者_JAVA技巧is environment data by default at the bottom.
Is there anyway to get the profiler to share the same info?
The profiler does not show global data on in Kohana v3. You would have to create a different view (or copy system/views/profiler/stats.php
and edit) to show this additional information.
By default, this information is not shown on the profiler because it can be a security risk if the session contains private data, or $_POST
contains a password, etc.
精彩评论