Exemplo n.º 1
0
 public function annonceUne($url, $img)
 {
     $data = new DataController($url);
     $db = Atomik::get('db');
     $this->title = $data->fetchTitle('h1', 1);
     $this->text = $data->fetchCalendarText();
     $this->link = $data->fetchLink();
     $funtionName = __FUNCTION__;
     $this->viewOutput = Atomik::render('blocs/leadArticle', array('title' => $this->title, 'text' => $this->text, 'link' => $this->link, 'img' => $img, 'section' => $funtionName));
     echo $this->viewOutput;
 }