function require_celerity_resource($symbol, $source_name)Phorge Technical Documentation (Celerity)
function require_celerity_resource($symbol, $source_name)
Phorge Technical Documentation (Celerity)
Include a CSS or JS static resource by name. This function records a dependency for the current page, so when a response is generated it can be included. You can call this method from any context, and it is recommended you invoke it as close to the actual dependency as possible so that page dependencies are minimized.
For more information, see Adding New CSS and JS.
Parameters
string | $symbol | Name of the celerity module to include. This is whatever you annotated as "@provides" in the file. |
$source_name |
Return
void |