I'm trying to use data from MYSQL to cache a template.
I know everything with the MYSQL database connection works fine, but I can't seem to get the syntax right for placing the variable within the globaltemplates array.
What I'm working with:
Code:
// pre-cache templates used by all actions
$globaltemplates = array('cruisecams_ports', 'cruisecams_ports_menu', 'adblock_cruisecams_sidebar', 'sociallinks');
I'm trying to replace 'cruisecams_ports' with the data from MYSQL stored in $portcamtemplate.
Currently I'm just getting this error "
Fatal error: Call to undefined method dbPDO::query_first_slave()" anytime I try and place the variable in the array.
All other MYSQL data works fine in the rendered page it's just when I try to set a variable in the template array that the issue occurs.