public function recettes($url, $view) { $data = new DataController($url); $this->title = $data->fetchTitle('h1', 0); $this->text = $data->fetchText($this->getParagraph()); $base_url = $this->getBaseUrl(); $this->img = $data->fetchImg($base_url); $this->link = $data->fetchLink(); $this->viewOutput = Atomik::render($view, array('title' => $this->title, 'text' => $this->text, 'img' => $this->img, 'link' => $this->link, 'count' => $this->count)); echo $this->viewOutput; }