CodeIgniter Forums

Full Version: i didn't understand CI caching driver. please show me..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]vee[/eluser]
from my controller sample

Code:
class index extends CI_Controller {
    function __construct() {
        parent::__construct();
    }// __construct

    function index() {
        $output['page_content'] = "hello world.";
        $this->load->view("index_view", $output);
    }
}
index controller


from controller above if i use output cache, i just put
Code:
$this->output->cache(5);
for 5 minute cache.


but caching driver.
i can't get it how to use with controller and view?
please show me some sample. Smile