How about
$this->_helper->layout->getLayout()->disableLayout()
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
--
Simon Mundy | Director | PEPTOLAB
""" " "" """""" "" "" """"""" " "" """"" " """"" " """""" "" "
Please support Movember today! Visit http://www.movember.com/au/donate
Registration number for Simon 160725
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654
4124
http://www.peptolab.com