Skip to content
Snippets Groups Projects
Commit 8065837f authored by Alexander Jason's avatar Alexander Jason
Browse files

feat: add premium controller

parent 9655cd52
Branches
Tags
No related merge requests found
<?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();
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment