Skip to content

Instantly share code, notes, and snippets.

@katzueno
Created October 19, 2014 22:45
Show Gist options
  • Save katzueno/ad6573a3a8bb5393f8ec to your computer and use it in GitHub Desktop.
Save katzueno/ad6573a3a8bb5393f8ec to your computer and use it in GitHub Desktop.
Get URL parameter and change the area to display
<?php
if (isset($_GET['area'])) $area = $_GET['area'];
if ($area = 'a') {
$a = new Area('Main_A');
$a->display($c);
}
if ($area = 'b') {
$a = new Area($area);
$a->display('Main_B');
}
if ($area = 'c') {
$a = new Area($area);
$a->display('Main_C');
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment