adds the dashboard menu punkt and adds greeting to the dashboard view

This commit is contained in:
SimonGschnell
2024-10-17 09:58:28 +02:00
parent 14aa98c223
commit e475fe568e
4 changed files with 65 additions and 9 deletions
+8 -1
View File
@@ -27,6 +27,13 @@ class Cis4 extends FHC_Controller
*/
public function index()
{
$this->load->view('CisVue/Dashboard.php');
$this->load->model('person/Person_model','PersonModel');
$begrüsung = $this->PersonModel->getFirstName(getAuthUID());
if(isError($begrüsung))
{
show_error("name couldn't be loaded for username ".getAuthUID());
}
$begrüsung = getData($begrüsung);
$this->load->view('CisVue/Dashboard.php',["name"=> $begrüsung]);
}
}