added notes page
This commit is contained in:
27
Controller/NotesController.php
Normal file
27
Controller/NotesController.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace ppa\Controller;
|
||||
|
||||
use ppa\Model\NotesModel;
|
||||
use ppa\Library\View;
|
||||
|
||||
class NotesController
|
||||
{
|
||||
private $notesModel;
|
||||
protected $view;
|
||||
|
||||
public function __construct($view)
|
||||
{
|
||||
$this->notesModel = new NotesModel();
|
||||
$this->view = $view;
|
||||
}
|
||||
|
||||
public function showNotes()
|
||||
{
|
||||
$this->view->setVars([
|
||||
"notes" => $this->notesModel->selectNotes()
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user