Services in Tiki are PHP classes.
Services execute certain actions (eg: insert, update, delete, list, etc).
Services vs libs
Difference between libs and services..
Tiki services are registered here:
Sample service: wiki controller
Public and private functions
$input holds all information passed to the action (variables with values). This needs to be extracted and validated in the action.
In the smarty templates put a $confirm variable, this helps to identify if the action is to be executed.
Why? For a given action the same smarty tpl is used for creating a new item and updating an existing one.
Calling a service through a button/link
1) use service
2) use bootstrap_modal