dani33
Neues Mitglied
PHP:
switch($routing->Get(0)){ case "news": $page = PAGE_DIR . "news.php"; $title = "News"; if($routing->Get("item")){ $title = "Item " . $Info->Get("item") . " | " . $title; } break;//Admin Routing case "admin": $page = PAGE_DIR . "admin/index.php"; $title = "Index"; $description = $a; $keywords = $a; break; //login case "alogin": $page = PAGE_DIR . "admin/login.php"; $title = "Admin Login"; break;
Google hat mir leider nicht geholfen - ich hoffe ihr könnt mir eine Alternativlösung geben.
hab sowas probiert funktioniert leider net.
PHP:
global $db;$rout = $db->get_results("SELECT page, menu, title, keywords, description FROM pages");if($routing->Get(0)){ while($routing->Get(0)) {$menu = $rout->menu; if($routing->Get(0) == $menu) { $page = PAGE_DIR . $rout->page; $title = $rout->title; $description = $rout->description; $keywords = $rout->keywords; }}} else { $page = PAGE_DIR . "index.php"; $title = "Home";}