Beispiel #1
0
 public function index()
 {
     $cat = null;
     if (Core::checkRequiredGetVars('cat')) {
         $cat = $_GET['cat'];
     }
     $this->setTitle('Achilles');
     $m = new ModelPost();
     $this->addContent('posts', $m->getPostsByDay($cat));
 }