开发者

in zend zfdata grid remove pdf, excel and other export option

开发者 https://www.devze.com 2023-03-26 23:54 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消