Buy Now
Sign in

How to create my own actions

ladyj , November 28 2017
L
ladyj
Hi,

I'm looking for some documentation to write my own actions.

I took a look to the default ones, I understood I have to write a class whitch extends \GCore\Admin\Extensions\Chronoforms\Action. But what about parameters and so on?

Thanks in advance.
admin
Hi ladyj,

What kind of action you need to write exactly ?

Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
L
ladyj
Hi,

I need to send data to a "Document management system" through REST calls.
I've already successfully used "Custom code" and "curl" actions to achieve my goal, but this is a too complex solution and my customer wants to be independent.
I want to write a custom action and hide the most of complexity with parameters and so on.

I found out that the method "config_check" is used to expose parameters, is it right?
admin
Hi ladyj,

I suggest that you check the curl action file then and build on that, if you need to understand something in this action then please let me know.

You may also check v6 if you have the option to upgrade.

Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
L
ladyj
Hi,

Ok I'm going to start from curl.php.
What about string translate? The installer has to be a .zip, how I need to organize it? With file .ini like in Joomla extensions?
My action file (I'm going to call it arxivar.php) has to be in the root of my .zip installer?

Thanks