0) { $podcast_model = new PodcastModel(); if ( !($this->podcast = $podcast_model ->where('name', $params[0]) ->first()) ) { throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound(); } } return $this->$method(); } public function index() { // The page cache is set to a decade so it is deleted manually upon podcast update $this->cachePage(DECADE); self::triggerWebpageHit($this->podcast->id); $data = [ 'podcast' => $this->podcast, 'episodes' => $this->podcast->episodes, ]; return view('podcast', $data); } }