Hard Coded Page List

Permalink
Hello,
I've hard coded 2 page lists into a template file.
The first one works perfectly, but when I try and display 2 of them the second one will not display.
Does anyone know why? and a work around for this.
Do i need to reset a global variable or something?

<?php
$bt = BlockType::getByHandle('page_list');
$bt->controller->cParentID = '363'; 
$bt->render('templates/iphone_performance_list/view');
?>
<?php
$bt2 = BlockType::getByHandle('page_list');
$bt2->controller->cParentID = '364'; 
$bt2->render('templates/iphone_performance_list/view');
?>

johndorsay
 
johndorsay replied on at Permalink Reply
johndorsay
Well, as always it is user error...
I had a function coded into the template.
Moved it to the helpers folder and all works as needed.
Just in case someone else is having a bad day as well

John