Statische pagina's naar CMS (nu werkend)

This commit is contained in:
NH Gooi
2025-07-16 21:24:15 +02:00
parent 7da73b92a9
commit e3564b524f
8 changed files with 20 additions and 334 deletions

View File

@@ -149,6 +149,7 @@ class Controller extends BaseController
return is_object($obj) ? new \DateTime($obj->date, new \DateTimeZone($obj->timezone)) : \Carbon\Carbon::parse($obj)->setTimezone(date_default_timezone_get());
}
/*
public function __call($method, $arguments)
{
if (substr($method, 0, 5) == 'view_') {
@@ -160,6 +161,7 @@ class Controller extends BaseController
return abort(404);
}
*/
public function getSidebareData()
{
@@ -180,6 +182,10 @@ class Controller extends BaseController
public function static_page($slug)
{
if (view()->exists($slug)) {
return view($slug);
}
$page = $this->API('statisch/' . $slug);
if ($page == null) {
return abort(404);