I need to add a install.php file to a my local plugin, for exccuting some logics when the plugin is installed for the first time.
All clear to me, but i cannot find a way to make it works!
I've found no guide of how naming and convention for such type of file, so browsing code ive found that u need a function called:
functionxmldb_local_PLUGINNAME_install(){}
but this give me some errors back:
Exception - Call to undefined function xmldb_local_PLUGINNAME_install()
if i put the code without the function, all works, but the script isn't executed at the install of the plugin.
I am trying to understand if importing of classes at the top of "install.php" can broke all, i cannot find example anywhere!
As I need a namespace to for using some external functions it can be a problem too?