public function renderRandom($genre) { $data = new DataModel(); $this->template->result = $data->random($genre); }