public static function add_template_path($path)
    {
        if (!isset(self::$template_path) || empty(self::$template_path)) {
            self::init_template_paths();
        }
        if ($path[0] != '/') {
            $path = BASE_PATH . '/' . $path;
        }
        self::$template_path[] = rtrim($path, '/');
    }
public static function add_template_path($path)
    {
        if (!isset(self::$template_path) || empty(self::$template_path)) {
            self::init_template_paths();
        }
        if ($path[0] != '/') {
            $path = BASE_PATH . '/' . $path;
        }
        self::$template_path[] = rtrim($path, '/');
    }
public static function add_template_path ( $ path ) { if ( ! isset ( self :: $ template_path ) || empty ( self :: $ template_path ) ) { self :: init_template_paths ( ) ; } if ( $ path [ 0 ] != '/' ) { $ path = BASE_PATH . '/' . $ path ; } self :: $ template_path [ ] = rtrim ( $ path , '/' ) ; }
Path should be relative to BASE_PATH
@param string $path
Path should be relative to BASE_PATH