Created
October 19, 2014 22:45
-
-
Save katzueno/ad6573a3a8bb5393f8ec to your computer and use it in GitHub Desktop.
Get URL parameter and change the area to display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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