Hi
I want to create a variable whose value is the content of required file/s.
In the code below, when require() is used the content in the required pages is automatically printed:
//include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
$directory_array = $template->get_template_part($page_directory, '/^jscript_/');
while(list ($key, $value) = each($directory_array)) {
//include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically.
//These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
require($page_directory . '/' . $value);
echo "\n";
}
I am trying to put the content from the required pages in a variable so I can echo it out when needed.
Have looked at the manual and have spent time trying to figure this out.
Thanks in advance for any help given.