fusio icon indicating copy to clipboard operation
fusio copied to clipboard

Location of action php files

Open ghost opened this issue 6 years ago • 3 comments

Hi, I want to create an action which launches a PHP script. But where do I place this file? I tried it in the src directory but that did not work. Thanks!

ghost avatar Nov 29 '18 13:11 ghost

Hi, so the src/ folder is the correct location for PHP source files. There you can create actions i.e. https://github.com/apioo/fusio/blob/master/src/Todo/Insert.php which can then also include other PHP scripts.

chriskapp avatar Nov 29 '18 21:11 chriskapp

Hi, so the src/ folder is the correct location for PHP source files. There you can create actions i.e. https://github.com/apioo/fusio/blob/master/src/Todo/Insert.php which can then also include other PHP scripts.

Provided URL not working anymore :( I still cannot fugure out where to store the PHP files. Can you please update the URL or just add to the comment the correct path to store PHP files. Thanks in advance.

mcmidget avatar Feb 18 '22 14:02 mcmidget

Hi, so we have removed the example Todo files from the main repo but you can also take a look at our documentation s. https://docs.fusio-project.org/docs/use_cases/develop_custom_action or you can also take a look at https://github.com/apioo/fusio-sample-cms for a live example.

chriskapp avatar Feb 18 '22 17:02 chriskapp