From 8065837f71ad88efefe17952f06e05fdd0ded93a Mon Sep 17 00:00:00 2001
From: Alexander Jason <alexanderjason526@gmail.com>
Date: Mon, 13 Nov 2023 19:54:09 +0700
Subject: [PATCH] feat: add premium controller

---
 app/controllers/PremiumController.php | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 app/controllers/PremiumController.php

diff --git a/app/controllers/PremiumController.php b/app/controllers/PremiumController.php
new file mode 100644
index 0000000..a3cda80
--- /dev/null
+++ b/app/controllers/PremiumController.php
@@ -0,0 +1,27 @@
+<?php
+
+class PremiumController extends Controller implements ControllerInterface
+{
+    private AuthorModel $model;
+    public function __construct() {
+        require_once __DIR__ . '/../models/UserRole.php';
+        $this->model  = $this->model('AuthorModel');
+    }
+    // TODO: PARAMS ROUTING
+    public function index()
+    {
+        $premiumView = $this->view('premium', 'PremiumView');
+        $premiumView->render();
+    }
+    public function detail()
+    {
+        $premiumView = $this->view('premium', 'CollectionDetailView');
+        $premiumView->render();
+    }
+    public function book()
+    {
+        $premiumView = $this->view('premium', 'PremiumBookDetailView');
+        $premiumView->render();
+    }
+    
+}
-- 
GitLab