public getJs () Returns the CSS collection of assets
public getCss () Returns the CSS collection of assets
public getCollections () Returns existing collections in the manager
public get (mixed $id) Returns a collection by its id $scripts = $assets->get('js');
public exists (mixed $id) Returns true or false if collection exists
public collection (mixed $name) Creates/Returns a collection of resources
public addResourceByType (mixed $type, Phalcon\Assets\Resource $resource) Adds a resource by its type $assets->addResourceByType('css', new \Phalcon\Assets\Resource\Css('css/style.css'));
public addResource (Phalcon\Assets\Resource $resource) Adds a raw resource to the manager $assets->addResource(new Phalcon\Assets\Resource('css', 'css/style.css'));
public addJs (mixed $path, [mixed $local], [mixed $filter], [mixed $attributes]) Adds a javascript resource to the ‘js’ collection $assets->addJs('scripts/jquery.js'); $assets->addJs('http://jquery.my-cdn.com/jquery.js', false);
public addInlineJs (mixed $content, [mixed $filter], [mixed $attributes]) Adds an inline javascript to the ‘js’ collection
Page 362 of 382