Page MenuHomeClusterLabs Projects
Diviner Tech Docs require_celerity_resource

function require_celerity_resource($symbol, $source_name)
Phorge Technical Documentation (Celerity)

Documentation Warnings

This call takes 2 parameters, but only 1 is documented.

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$symbolName of the celerity module to include. This is whatever you annotated as "@provides" in the file.
$source_name
Return
void