I have just created a new module using FrontAccounting 2.2.9 and this is how I did it.
This in NOT a howto just an explanation of what I have on the subject
I have excluded access levels to make it simpler
NB NB NB NB NB NB NB NB NB
You need to update installed_extensions.php in the root folder to let FrontAccounting know that the class exist, then you need to update each installed_extensions.php in the company folder “company\0\” and / or company in wich the module should display. The last is for display purposes and the first is for creation of the object.
NB NB NB NB NB NB NB NB NB
My entries were:
2 => array ( 'tab' => 'meminfo',
'path' => 'meminfo',
'active' => '1',
'type' => 'module',
'filename' => 'meminfo.php',
)
What each entry is for:
'tab' => 'meminfo'
is the name of your class but in the class it should have an additional _app
For this example
class meminfo_app extends application
'type' => 'module',
We are creating a module and not a plugin
'path' => 'meminfo',
The path in which app_file is located. It would be best to keep all your files seperate from the development files.
'filename' => 'meminfo.php',
This is the file that should contain the main class look at the applications folder for examples
The Class /meminfo/meminfo.php
This class is basically just a menu to your seperate functions
class meminfo_app extends application // Name of your class remember to add the _app
{
function meminfo_app()
// This is the constructor read about php objects for more
{
$this->application("members", _($this->help_context = "&Member Info"));
// members is the application argument in the $_GET string and "&Member
//Info" is the name of the tab
$this->add_module(_("Tester"));
// The firsgroup of links take a look in the applications folder
//for more examples
$this->add_lapp_function(0, _("Tester &Title"),
"meminfo/member_display.php", 'SA_USER_STATUS');
// A link take a look in teh applications folder for more examples
}
}