These methods allow you to include both local and remote files and the following $options are available:
- reset_cache - force reset the output cache. PHPR will cache combined files on the server. By default it updates the cache as soon as any of the cached files is changed.
- skip_cache - do not cache the combined files.
- src_mode - do not minify the combined files. Retains all comments and formatting.
Combines multiple CSS files into a single stylesheet. PHPR will automatically process relative URLs in CSS combined files
<?= $this->css_include(array( '@/assets/css/font/stylesheet.css', '@/assets/css/ui.css', '@/assets/css/app.css', '@/assets/css/templates.css', '@/assets/css/pages.css', ), array( 'src_mode'=>true )) ?>
<?=$this->js_include(array( 'jquery', 'core_jquery', 'frontend_core' )) ?>
PHPR also has a CSS file for styling standard controls used, such as the AJAX loading indicator. You can include it with the core_styles alias in the css_include() method:
<?= $this->css_combine(array( 'core_styles' )) ?>