-
- 191 Posts
Any idea why the following code won’t produce any output when there are existing Template Variables?
$tvCriteria = $modx->newQuery('modElement', array(
'class_key' => 'modTemplateVar'
));
$tvVars = $modx->getCollection('modElement', $tvCriteria);
foreach ($tvVars as $tvVar) {
echo 'test result set';
$test = $tvVar->toArray();
print_r($test);
}
God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.
-
- 191 Posts
That works perfect - Thanks!
God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.