Blame view

application/controller_base.class.php 782 Bytes
8d65d0ce   andryeyev   init
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
28
29
30
31
32
33
34
35
36
  <?php
  
  Abstract Class baseController {
  
  /*
   * @registry object
   */
  protected $tpl,$url,$this_url,$navig,$error,$getParam,$postParam,$lang;
  public $loadBlock = true;
  
  
  function __construct($tpl,&$error,$getParam,$postParam,$lang,$url,$this_url,&$navig,&$meta) {
          $this->tpl = $tpl;
          $this->url = $url;
          $this->this_url = $this_url;
          $this->error = &$error;
          $this->getParam = $getParam;
          $this->postParam = $postParam;
          $this->lang = $lang;
          $this->navig = &$navig;
          $this->meta = &$meta;
          
          if(isset($this->_navig)){
           array_push($this->navig,$this->_navig);
          }
  }
  
  
  /**
   * @all controllers must contain an index method
   */
  abstract function index();
  //abstract function preDispatch();
  }
  
  ?>