/** * Returns the full path to the views directory being used. This will change based on the * current site directory or if another module modifies the path via View::setPath. * * @return string Full path to current views directory */ public static function getPath() { if (is_null(self::$_path)) { self::$_path = Site::getPath() . Config::get('view.dir'); } return self::$_path; }
/** * Método para mostrar una ventana de error */ public static function error($template = 'backend/error') { self::$_path = '_shared/errors/'; self::select('popup', $template); }