Ashuwp_framework
Ashuwp_framework copied to clipboard
导入导出功能的没有测试成功
require DIR .'/import_export.php';
开启了功能,
$import_info = array( 'full_name' => 'Import/Export', 'child'=>true, 'parent_slug'=>'generalpage', 'filename' => 'import_page' ); $import_page = new ashu_option_import_class($import_info);
generalpage 也已经创建了,但是并没有调出导入导出的子页面,求解答。
$import_page = new ashuwp_option_import_class($import_info);
这句也测试了,依旧没有调出导入导出页面。
抱歉!文档失误。 使用导入导出功能如下:
- ashuwp_frameworke_core.php底部导入导出类文件的require语句默认注释掉了,请先去掉注释。
- 配置文件中(文档里面忘了options参数了):
/****import-export*****/ $import_info = array( 'full_name' => 'Import/Export', 'child'=>true, 'parent_slug'=>'generalpage', 'filename' => 'import_page', 'options'=>array('general','childoption','toppage') //此数组元素为配置的设置页面的optionname ); $import_page = new ashuwp_option_import_class($import_info);