The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to set a variable for a cached template in a custom page?
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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|