Blame view

frontend/web/count_form/index.php 510 Bytes
559be889   Alexander Karnovsky   Init test-9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  <?php
  
  function __autoload($class_name){
      $class_name = str_replace('\\','/', $class_name);
      include_once( "count_form.php" );
  
  }
  
  
  if(isset($_GET)){
  
      $page    = !empty($_GET['p']) ? $_GET['p'] : 'form';
  
      $subpage = !empty($_GET['sp']) ? $_GET['sp'] : 'index';
  
      $action = !empty($_GET['a']) ? $_GET['a'] : $subpage;
  
      $class   = __DIR__ .'\count_form\app\data\\'.$page;
  
      $object = new $class();
  
      $data = $object->$action();
  
  }
  
  
  include_once 'count_form/app/view/main_page.php';