Welcome Guest, Not a member yet? Register   Sign In
i didn't understand CI caching driver. please show me..
#1

[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




Theme © iAndrew 2016 - Forum software by © MyBB