Hard Coded Page List

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?

$bt = BlockType::getByHandle('page_list');
$bt->controller->cParentID = '363'; 
$bt2 = BlockType::getByHandle('page_list');
$bt2->controller->cParentID = '364'; 

View Replies:
johndorsay replied on at Permalink Reply
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