After some advice on this list last week I've been looking at Zend
Layout, and it does everything I need except one single action in my
project (which renderds a JPEG and therefore does not require a layout).
I'm getting the following error:
PHP Fatal error: Call to undefined method
Zend_Layout_Controller_Action_Helper_Layout::disableLayout() in /var/
www/proficcymod/application/controllers/TestController.php on line 39
Line 39 reads:
$this->_helper->layout->disableLayout();
I have the following includes at the top of the controller class:
require_once 'Zend/Layout.php';
require_once 'Zend/Layout/Controller/Action/Helper/Layout.php';
And my include path is set up like so:
php_value include_path "../lib/ZFIncubator:../lib/LLGC:/usr/local/
ZendFramework-1.0.2/library/"
I'm stumped. I tried altering the line to read:
$this->_helper->getLayout()->disableLayout();
but obviously helpers don't work like regular classes as I would have
expected me to be able to return a Layout instance but instead it
tries to locate a layout called getLayout!
--
Dan Field <[EMAIL PROTECTED]> Ffôn/Tel. +44 1970 632 582
Peiriannydd Meddalwedd Software Engineer
Llyfrgell Genedlaethol Cymru National Library of Wales