PageFactory.class.php 178 B

123456789101112131415
  1. <?php
  2. class PageFactory
  3. {
  4. public function create()
  5. {
  6. if(!isset($_GET['id']))
  7. {
  8. return Default404Page::getInstance();
  9. }
  10. return TemplatePage::getInstance();
  11. }
  12. }