The contents of an action file

An action file provides at least one function matching its own filename. A file called action/laugh.php should therefore declare a function called action_laugh_dist().

  1. <?php
  2. if (!defined("_ECRIRE_INC_VERSION")) return;
  4. function action_laugh_dist(){
  6. }
  7. ?>


Operation of the function

In general, the main function is divided into 2 sections: verification of authorisations, then execution of the requested process.

Author Mark Baber Published :

Translations : English, français