include_resources
function include_resources($src_mode = false)
Outputs HTML links to the JavaScript and CSS files required for the LemonStand front-end framework. Call this function inside the HEAD element of pages where you are going to use LemonStand AJAX calls.
This function is obsolete and will not be updated in the future. The JavaScript and CSS combining features provide similar functionality, but they are more powerful and flexible. We recommend to use them instead of the include_resources() function.
Parameters
- $src_mode - pass the TRUE value if you want to link uncompressed front-end JavaScript libraries. The default parameter value is FALSE and the function links combined and compressed JavaScript library as a single file.
Return value
Returns string.
Examples
The following code example demonstrates usage of the include_resources function in a page template.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title><?= h($this->page->title) ?></title> <meta name="Description" content="<?= h($this->page->description) ?>"/> <meta name="Keywords" content="<?= h($this->page->keywords) ?>"/> <?= include_resources() ?> </head> <body> ...

