controller_base.class.php 782 Bytes
<?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();
}

?>