我的程序应该加密图像。
我的问题是:如何显示加密的图像
我的控制器代码
public function view($slug = NULL){
$data['post'] = $this->post_model->get_posts($slug);
$post_id = $data['post']['id'];
$user_id = $data['post']['user_id'];
$data['comments'] = $this->comment_model->get_comments($post_id);
$data['users'] = $this->user_model->get_user($user_id);
if(empty($data['post'])){
show_404();
}
$data['title'] = $data['post']['title'];
$this->load->view('templates/header');
$this->load->view('posts/view', $data);
$this->load->view('templates/footer');
}