public function toRender($title, $crud, $data)
    {
        $view       = $this->di->get("view");
        $pageRender = $this->di->get("pageRender");
        $view->add($crud, $data);
        $tempfix = "";
        $pageRender->renderPage($tempfix, ["title" => $title]);
    }
public function toRender($title, $crud, $data)
    {
        $view       = $this->di->get("view");
        $pageRender = $this->di->get("pageRender");
        $view->add($crud, $data);
        $tempfix = "";
        $pageRender->renderPage($tempfix, ["title" => $title]);
    }
public function toRender ( $ title , $ crud , $ data ) { $ view = $ this -> di -> get ( "view" ) ; $ pageRender = $ this -> di -> get ( "pageRender" ) ; $ view -> add ( $ crud , $ data ) ; $ tempfix = "" ; $ pageRender -> renderPage ( $ tempfix , [ "title" => $ title ] ) ; }
Sends data to view

@param string $title
@param string $crud, path to view
@param array $data, htmlcontent to view
Sends data to view