public function tagged($tag = 'untagged') { $this->data['title'] = "Entries containing " . $tag; $p = new Blogpost(); $p->like('tags', $tag); $p->order_by('date', 'desc'); $p->get(); $this->data['posts'] = $p->all; $this->load->view('recent_view', $this->data); }