public static function getInstance() { if (self::$_instance == null) { self::$_instance = new View(); } return self::$_instance; }
public static function getInstance() { if (self::$instance == null) { self::$instance = new \Framework\View(); } return self::$instance; }
private static function viewAdjustment() { if (Helpers::endsWith(self::$actionName, "Pst") || Helpers::endsWith(self::$actionName, "Put") || Helpers::endsWith(self::$actionName, "Del")) { self::$actionName = substr(self::$actionName, 0, strlen(self::$actionName) - 3); } }
/** * Reiniciamos la clase borrando las variables y plantillas asignadas * @return nothing */ public static function clear() { self::$variables = array(); self::$templates = array(); self::$files = array('js' => array(), 'css' => array(), 'lang' => array()); }