19 lines
444 B
PHP
19 lines
444 B
PHP
<?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);
|
|
}
|
|
} |