Ejemplo n.º 1
0
 protected function add()
 {
     if (!isset($_SESSION['is_logged_in'])) {
         header('Location: ' . ROOT_URL . 'shares');
     }
     $viewmodel = new ShareModel();
     $this->getView($viewmodel->add(), true);
 }