Hello,
is there a tutorial for developing actions für Chronoforms V5?
best Regards
Frank
Or to make it simple.
How could I turn the existing "Debugger" action into a new one?
best regards
Frank
Hi Frank,
No there is no tutorial that I know of.
If you look at the debugger.php file you will see that it is a PHP class with two main functions:
a) execute() runs the debugger action. It gets any saved parameters, then runs some PHP - in this case echos out some info.
b) config() runs the administration dialogue to allow you to set parameters. There are some special classes called that are used to create element of the admin dialogue. you can find out what those are by digging in to other actions.
The third function:
c) config_check() is a new one that looks at the settings and displays the little red and green diagnostic icons you can see in the Setup tab.
What do you want your action to do?
Bob
Hi Bob,
I'm thinking of an error logging Action.
It should have a parameter may be called debugLevel.
in the higest Level it should logg the whole $form->data to a databasetable.
In normal Mode it should logg only errors and unexpected conditions.
I have renamed and changed the debugger action to a different name (foldername, classname, title and so on).
Packed it into a zip file and installed it.
The installation works. The code (folder) of the new action apears in the right position.
But in the "Setup" Tab it does not appear in the Action-Selection.
I would expect it to appear under "Basic" like the Debugger Action.
best regards
Frank