I am using CI 3.0 to call a script in display_override
hook that will replace tokens such as [[templatedata:head]] which will include all the scripts and CSS associated with a template's head section, thus it will inject the relevant < script >
as < link >
tags in the template, but since different templates may have different scripts, this needs to be dynamically determined at injection time. The source of the script is an array in a configuration file with the template name as the array key.
Is there a way that I can set a regular variable or session variable to hold that template name to be accessible by the hook script in order to call the right array sub section of scripts?