I created the following package, but I had to comment out the controller.php files because there is an error when they are imported.
Why can't we import into controller.php files, or any file into custom/modules/<module>/ ?
I created the following package, but I had to comment out the controller.php files because there is an error when they are imported.
Why can't we import into controller.php files, or any file into custom/modules/<module>/ ?
Hi Amy Cox,
Can be several factors, Do you have seen, how to create a manifest.php file? or Do you have builded a new module from the module builder? etc.
In the manifest.php file you can exectue a copy command of the files, wherever you want. You can tell to the installer what to do exactly, I suggest you see this link:
This is for the 9 version of SugarCRM as developer, but if your SugarCRM version is old, it is almost the same thing.
I hope it useful.
Regards.
The package zip file is attached to the question. Most of it is successfully makes copies, but when I try to copy to custom/modules/<module>/ it doesn't work. That location is where the controller.php file is normally located. That is why I commented them out in the manifest.
The question here is how do we install controller.php files, or have they be replaced with something else.
The package zip file is attached to the question. Most of it is successfully makes copies, but when I try to copy to custom/modules/<module>/ it doesn't work. That location is where the controller.php file is normally located. That is why I commented them out in the manifest.
The question here is how do we install controller.php files, or have they be replaced with something else.
Ok Amy Cox, I am sorry! I don´t see it!.
I think your problem is:
In the "to" property of the copy command, you have the <name_file> .php file included and it should not be there.
The command is simply not finding the path:
custom / modules / <module> .... / <name_file> .php because that path doesn't exist.
You should only have:
custom / modules / <module> /
OR
custom / modules / <module> /clientes/.../
Without having the PHP at the end of the statement.
And I suggest you do the same thing with the "from" property.