PHP Class AssetsHelper, spaghettiphp

The Assets Helper checks the application debug configuration and uses it to determine how assets should be outputted.
Inheritance: extends AppHelper
Show file Open project: spaghettiphp/spaghettiphp Class Usage Examples

Protected Properties

Property Type Description
$assets

Public Methods

Method Description
addAsset ( $name, $path )
asset ( $url, $name, $extension = null )
extension ( $file, $ext )
image ( $url )
removeAsset ( $name )
script ( $url )
stylesheet ( $url )

Method Details

addAsset() public static method

public static addAsset ( $name, $path )

asset() public method

public asset ( $url, $name, $extension = null )

extension() public method

public extension ( $file, $ext )

image() public method

public image ( $url )

removeAsset() public static method

public static removeAsset ( $name )

script() public method

public script ( $url )

stylesheet() public method

public stylesheet ( $url )

Property Details

$assets protected static property

protected static $assets