[ 'include' => __DIR__ . '/Views/ListPosts.php', 'label' => 'Posts', 'icon' => 'ph-article', 'inMenu' => true, ], 'categories' => [ 'include' => __DIR__ . '/Views/ListCategories.php', 'label' => 'Categories', 'icon' => 'ph-tag', 'inMenu' => true, ], 'editPost' => [ 'include' => __DIR__ . '/Views/EditPost.php', 'inMenu' => false, ], ]; $activeModule = isset($_GET['action']) && array_key_exists($_GET['action'], $modules) ? $_GET['action'] : 'posts'; ?>