Hi thanks again
This helped for a part.
Now if i type in the url it will not load the view which i wanted.
I changed te rewriterule in the .htaccess:
From: *RewriteRule ^(.)$ index.php?q=$1 [L,QSA]**
To: RewriteRule . index.php [L]
Now in my loginController:
public function loginAction()
{
return $this->dispatcher->forward(
[
"controller" => "admin",
"action" => "index",
]
);
}
in my adminController:
public function indexAction()
{
$this->view->render("admin", "index");
}
It does not render the view.
Which i do want from this action.
What am i doing wrong?
Then just move your directory with views, controller and php outside of public folder and in webserver configuration forward all urls to public index.php.