开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜