Skip to content

Instantly share code, notes, and snippets.

@phalcon
Last active December 17, 2015 17:19
Show Gist options
  • Select an option

  • Save phalcon/5645075 to your computer and use it in GitHub Desktop.

Select an option

Save phalcon/5645075 to your computer and use it in GitHub Desktop.
<?php
$manager = new Phalcon\Assets\Manager();
$js = $manager->get('js');
$js->addFilter(
new Phalcon\Assets\Filters\Jsmin(array(
'some-option' => 'some-value'
)
);
$js->addWriter(
new Phalcon\Assets\Writer\InlineJavascriptTag()
);
$js->addJs('js/jquery.js');
$js->output();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment