webCOMAND

COMAND

io_comand

The io_comand package provides three core classes:

  • comand - Provides easy access to repositories and event logging features.
  • exception - The base COMAND PHP API exception class.
  • loader - Loads package classes and configurations.

Add the "require_once" line at the start of the example below to your PHP code to load the classes above, which will in-turn auto-load all other COMAND PHP API classes on-demand.  path/to/comand.php represents the path to comand.php in the folder where COMAND was installed. 

// enable the COMAND Auto-Loader
require_once('path/to/comand.php');

// log a notice to the configured event log
comand::log_notice("COMAND Auto-Loader enabled.");