public function calendar($url, $view) { $data = new DataController($url); $db = Atomik::get('db'); $this->title = $data->fetchTitle('h2', 1); $this->date = $data->fetchDate(); $this->link = $data->fetchLink(); $this->place = $data->fetchPlace(); $this->viewOutput = Atomik::render($view, array('title' => $this->title, 'date' => $this->date, 'link' => $this->link, 'count' => $this->count, 'place' => $this->place)); echo $this->viewOutput; }