在新设计的phpMyAdmin中,如何将导出设置为默认“以文本形式查看输出”?
在新设计的phpMyAdmin(目前为3.4.2)中,如何将导出设置为默认“以文本形式查看输出”?
这曾经有效,但现在不再有效:
$cfg['Export']['asfile'] = false;
我在查看 display_export.lib.php
的代码后尝试了这些操作,但没有运气:
$cfg['Export']['repopulate'] = true; $cfg['Export']['view_as_text'] = true;
他们的文档似乎没有更新:http://wiki.phpmyadmin.net/pma/Config
推荐的解决方案
直到任何人都能找到“正确的方法”改变这个,我建议修改这一行display_export.lib.php
(当前第 328 行)。粗体文字是我补充的。还有一个括号在第一组粗体项目的右侧以粗体显示。
<li><input type="radio" id="radio_view_as_text" name="output_format" value="astext" <?php echo (!empty($cfg['Export']['view_as_text']) || isset($_GET['repopulate']) ) ? 'checked="checked"' : '' ?>/><label for="radio_view_as_text"><?php echo __('View output as text'); ?></label></li>
In the newly designed phpMyAdmin (currently 3.4.2), how can you set the export to default to "View output as text" ?
This used to work but no longer does:
$cfg['Export']['asfile'] = false;
I tried these things after looking through the code of display_export.lib.php
, but with no luck:
$cfg['Export']['repopulate'] = true; $cfg['Export']['view_as_text'] = true;
Their documentation does not seem to be updated: http://wiki.phpmyadmin.net/pma/Config
Recommended Solution
Until anyone can find the "right way" to change this, I would recommend modifying this line in display_export.lib.php
(currently line 328). The bold text is my addition. Also there is one parenthesis which is bolded to the right of the first set of bold items.
<li><input type="radio" id="radio_view_as_text" name="output_format" value="astext" <?php echo (!empty($cfg['Export']['view_as_text']) || isset($_GET['repopulate']) ) ? 'checked="checked"' : '' ?>/><label for="radio_view_as_text"><?php echo __('View output as text'); ?></label></li>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 phpMyAdmin 3.5.2.2 下工作正常将
以上行添加到 phpmyadmin 配置后重新启动 apache
works fine under phpMyAdmin 3.5.2.2
Restart apache after adding the above line to your phpmyadmin configuration