Overview

Namespaces

  • None
  • Wei
    • Validator

Classes

  • Apc
  • App
  • ArrayCache
  • Asset
  • Base
  • BaseCache
  • BaseController
  • Bicache
  • Cache
  • Config
  • Cookie
  • Couchbase
  • Counter
  • Db
  • DbCache
  • E
  • Env
  • Error
  • FileCache
  • Gravatar
  • Http
  • Lock
  • Logger
  • Memcache
  • Memcached
  • MongoCache
  • Password
  • PhpError
  • PhpFileCache
  • Pinyin
  • Record
  • Redis
  • Request
  • Response
  • Router
  • SafeUrl
  • Session
  • Soap
  • T
  • Ua
  • Upload
  • Url
  • Uuid
  • Validate
  • View
  • WeChatApp
  • Wei
  • Overview
  • Namespace
  • Class

Class Asset

A service to generate assets' URL

Wei\Base
Extended by Wei\Asset
Namespace: Wei
Author: Twin Huang twinhuang@qq.com
Located at Asset.php
Methods summary
public string
# __invoke( string $file, boolean $version = true )

Returns the asset or concat URL by specified file

Returns the asset or concat URL by specified file

Parameters

$file
$version
Whether append version or not

Returns

string
public string
# concat( array $files )

Returns the Minify concat URL for list of files

Returns the Minify concat URL for list of files

Parameters

$files

Returns

string

Link

https://github.com/mrclay/minify
public string
# getBaseUrl( )

Returns the base url of assets

Returns the base url of assets

Returns

string
public
# setBaseUrl( string $baseUrl )

Sets the base url of assets

Sets the base url of assets

Parameters

$baseUrl

Returns


$this
Methods inherited from Wei\Base
__call(), __construct(), __get(), getOption(), setOption()
Properties summary
protected string $baseUrl

The base URL of assets

The base URL of assets

# '/'
protected string $concatUrl

The base concat URL of assets

The base concat URL of assets

# '/concat'
protected string $version

The version number append to the URL

The version number append to the URL

# '1'
Properties inherited from Wei\Base
$providers, $wei
Wei Framework API documentation generated by ApiGen