[Vtigercrm-developers] email groups with workflow

Ramya Banglore ramya.banglore at gmail.com
Wed Oct 17 02:15:07 PDT 2012


*Hi

Can anybody tel me how to export custom module as a zip (package) file
which can used for importing through Module Manger

i have the below script

<?php
ini_set('display_errors',true);
ini_set('error_reporting',E_ALL&~E_NOTICE&~E_DEPRECATED);
include_once('vtlib/Vtiger/Package.php');
include_once('vtlib/Vtiger/Module.php');
$package = new Vtiger_Package();
$package->export(Vtiger_Module::getInstance('FacilityReservation'),
'test/vtlib', 'FacilityReservation.zip', true);
echo "Successfully Created";
?>

when run this script,i get the below errors

**Fatal error: Class 'Vtiger_Package' not found in
C:\wamp\www\vtigercrm540\vtlib\Vtiger\LanguageExport.php on line 16

*

include_once( 'C:\wamp\www\vtigercrm540\vtlib\Vtiger\Package.php' )
..\vtlib.ExportModule.php*:*4
require_once( 'C:\wamp\www\vtigercrm540\vtlib\Vtiger\PackageUpdate.php' )
..\Package.php*:*10

include_once( 'C:\wamp\www\vtigercrm540\vtlib\Vtiger\PackageImport.php' )
..\PackageUpdate.php*:*10

include_once( 'C:\wamp\www\vtigercrm540\vtlib\Vtiger\PackageExport.php' )
..\PackageImport.php*:*10
include_once( 'C:\wamp\www\vtigercrm540\vtlib\Vtiger\ModuleBasic.php' )
..\Module.php*:*10
include_once( 'C:\wamp\www\vtigercrm540\vtlib\Vtiger\Access.php' )
..\ModuleBasic.php*:*10
include_once( 'C:\wamp\www\vtigercrm540\include\utils\UserInfoUtil.php' )
..\Access.php*:*10
require_once( 'C:\wamp\www\vtigercrm540\include\utils\utils.php' )
..\UserInfoUtil.php*:*16
require_once( 'C:\wamp\www\vtigercrm540\include\utils\DetailViewUtils.php' )
..\utils.php*:*38
require_once( 'C:\wamp\www\vtigercrm540\vtlib\Vtiger\Language.php' )
..\DetailViewUtils.php*:*26
require_once( 'C:\wamp\www\vtigercrm540\vtlib\Vtiger\LanguageImport.php' )
..\Language.php*:*10

include_once( 'C:\wamp\www\vtigercrm540\vtlib\Vtiger\LanguageExport.php' )
..\LanguageImport.php*:*10
Can any body help me on this please
Thanks & Regards,
B.Ramya.
**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20121017/bc4b663b/attachment.html 


More information about the vtigercrm-developers mailing list