Introduction to the OFW API’s
The PHP API
The OFW PHP API is exposed via the zajLib singleton object. It is the one and only ‘global’ scope within the entire framework – it is the singleton object which refers to the system itself and can be invoked from anywhere within the code. Within instantiated objects, controllers, libraries, and other framework-enabled classes you will almost always have access to it via
$this->zajlib. Outside of the framework (or within static methods) you can access the object with
ofw object. Methods and properties of the
ofw object are described in the documentation.