Skip to content

Instantly share code, notes, and snippets.

@Swader
Created August 3, 2013 20:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swader/6147905 to your computer and use it in GitHub Desktop.
Save Swader/6147905 to your computer and use it in GitHub Desktop.
/** @var \Phalcon\Assets\Collection $cTest */
$cTest = $assets->collection('test');
$cTest->addJs('http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js', false);
$cTest
->join(true)
->setTargetUri('cdn/test.js')
->setTargetPath(
\Phalcon\DI::getDefault()->get('config')->application->cdnStoreDir . 'test.js'
)->addFilter(new \Phalcon\Assets\Filters\Jsmin());
$assets->outputJs('test');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment