2016-05-04 13 views

答えて

0

あなたは葦ドキュメントは、あなたがこの方法では、いくつかのビューをキャッシュしたい場合は、

class Somthing extends CI_Controller{ 
    function one(){//with cache 
     $data['variabe'] = $this->model->get_somthing(); 
     $this->load->view('view', $data); 

     $this->output->cache($seconds); 
    } 

    fucntion two(){//without cache 
     $data['variabe'] = $this->model->get_somthing(); 
     $this->load->view('view', $data); 
    } 
} 
を配置する必要があることを見ることができれば
関連する問題