Example #1
0
 public function actionEdit($id)
 {
     if ($_SESSION['id']) {
         $article = Article::findArticleById($id);
         $_SESSION['auther'] = $article['auther'];
         require_once ROOT . '/views/EditArticle.php';
     } else {
         require_once ROOT . '/views/Avtorisation.php';
     }
     return true;
 }