Hi,
Ok, I have been working through the tutorial. I copied and pasted the HelloWorld example and it seemed to work fine. However I made the following slight changes and it is no longer working.
XeroConnectInstall.php
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
class Custom_XeroConnectInstall extends ModuleInstall {
public function install() { // Here you can place the installation process for the module
Base_ThemeCommon::install_default_theme($this->get_type());
return true; // Return true on success and false on failure
}
public function uninstall() { // Here you can place uninstallation process for the module
Base_ThemeCommon::uninstall_default_theme($this->get_type());
return true; // Return true on success and false on failure
}
public function info() { // Returns basic information about the module which will be available in the epesi Main Setup
return array( 'Author'=>'Printec',
'License'=>'<Place type of the license here>',
'Description'=>'Connect Epesi to Xero');
}
public function simple_setup() { // Indicates if this module should be visible on the module list in Main Setup's simple view
return array('package' => __('XeroConnect'), 'version'=>'0.1'); // - now the module will be visible as "HelloWorld" in simple_view
}
public function requires($v) { // Returns list of modules and their versions, that are required to run this module
return array();
}
public function version() { // Return version name of the module
return array('0.1');
}
}
?>
XeroConnect_0.php
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden'); // - security feature
class Custom_XeroConnect extends Module { // - notice how the class name represents its path
public function body() { // - modules main code
print('Xero Connect');
}
}
?>
XeroConnectCommon_0.php
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
class Custom_XeroConnectCommon extends ModuleCommon {
public static function menu() {
return array(__('Module') => array('__submenu__' => 1, __('Xero Connect') => array())); // - this will output as Module->XeroConnect in the main menu
}
}
?>
These modules are in a folder called XeroConnect also under the custom/ path.
Are there any log files I can check to help understand why my custom modules are failing to load?
Is there some naming convention I have overlooked which is causing the Epesi system to overlook this custom module?
Regards
Glenn