table('control')->select(); const GUIDES = ['main', 'items', 'monsters', 'spells', 'classes']; $guide = isset($_GET['guide']) ? $_GET['guide'] : 'main'; const TITLES = [ 'main' => 'Main', 'items' => 'Items & Drops', 'monsters' => 'Monsters', 'spells' => 'Spells', 'classes' => 'Classes' ]; echo render('/guide/layout', ['guide' => $guide, 'db' => $db, 'control' => $control, 'title' => TITLES[$guide]]);