I want to access codeigniter session data ie $this->session->userdata('session_id');
inside ouput class ie secure_system_folder/core/Output.php
.
$CI =& get_instance;
$sess_id = $CI->session->userdata('session_id');
But what you're probably looking for is hooks , they're a much easier way to extend the core without directly editing (and therefore possibly breaking) core files.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.