How to set disableLayout in zend framwork 1.12.19?

     

I am new to zend framework 1.12.19 and now I am going to generate an excel file. I completed the code for that. in between I need to set layout to no layout.


I have written above lines to do that. But it is not working and it is giving me some errors.


set_time_limit( 0 );
$filename = '../data/uploaded-files/excel-uploaded/FILE.xls';   $realPath = realpath( $filename );   if ( false === $realPath )   {   touch( $filename );   chmod( $filename 0777 );   }
$filename = realpath( $filename );   $handle = fopen( $filename