projekt templade added

This commit is contained in:
2025-06-12 16:36:11 +02:00
parent d10b697c8c
commit 526b6504a8
22 changed files with 558 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace ppa\Controller;
use ppa\Model\GalleryModel;
use ppa\Library\View;
class GalleryController
{
private $galleryModel;
protected $view;
public function __construct($view)
{
$this->galleryModel = new GalleryModel();
$this->view = $view;
}
public function showPhotos()
{
$this->view->setVars([
"photos" => $this->galleryModel->selectPhotos()
]);
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace ppa\Controller;
/**
* Description of Welcome
*
* @author reich
*/
class WelcomeController
{
public function setView(\ppa\Library\View $view)
{
$this->view = $view;
}
function showWelcome()
{
}
}