The code you provided so far looks to me as it should work, but what I am worried about is that you don't have the view paths defined or this is a different instance of the view object.
Does header.phtml or footer.pthml exist on the paths when you do a print_r($view->getScriptPaths());
|