in zend zfdata grid remove pdf, excel and other export option
In the code below, if I comment out the line $grid->setExport(array('pdf', 'csv','excel','wordx'));
, I get all the default values开发者_开发百科 like pdf, excel and other formats.
How do I remove setExport
from the code below?
$view = new Zend_View();
$view->setEncoding('ISO-8859-1');
$config = new Zend_Config_Ini('./application/configs/grid.ini', 'production');
$grid = Bvb_Grid::factory('Table', $config, $id);
$grid->setEscapeOutput(false);
$grid->setExport(array('pdf', 'csv','excel','wordx'));
return $grid;
$grid->setExport(array());
Is what you're looking for.
精彩评论