Joywork/constructor/Controllers/FooterController.php

19 lines
444 B
PHP
Raw Normal View History

2026-05-22 20:21:54 +02:00
<?php
class FooterController extends BaseController {
public $model = null;
public function __construct()
{
parent::__construct();
$this->model = new FooterModel();
}
public function getFooter($params) {
$footer = $this->model->getFooter($params);
if (empty($footer)) {
http_response_code(404);
return $this->response(['message' => 'Header not found']);
} else return $this->response($footer);
}
}