示例#1
0
 /**
  * Crea una unica instancia y/o devuelve la actual
  */
 public static function getInstance($uri = NULL)
 {
     if (!self::$instancia instanceof self) {
         self::$instancia = new self();
     }
     return self::$instancia;
 }
示例#2
0
 function __construct()
 {
     parent::__construct('controller');
     $this->request = En_HttpRequest::getInstance();
     $this->viewFolder = PATHAPP . 'source/view/';
 }
示例#3
0
 function __construct()
 {
     parent::__construct('filter');
     $this->request = En_HttpRequest::getInstance();
 }
示例#4
0
/**
 * Crea la instancia request para la url que se mapeo
 * @param type $uri 
 */
function create_request($uri)
{
    En_HttpRequest::getInstance($uri);
}