I'm building my first web application(i mean first huge web application)using php but i have some questions about admin section.what are the ways for making admin i mean i thought i could make it this way: First make an array:
$pages = array('post' => 'posts.php', 'category' => 'categories.php');
And then read get var check if it's in array:
if($pages[$_GET['location']])
include "$pages[$_GET[location]]";
is this a good way? are there any other ways? and i was about to forget this one what are admin page html tags and headers? thank you.