Component Writer's Guide :: Environment Constants

From RadPHP XE2 Documentation
Jump to: navigation, search

RPCL defines several constants which can be useful for you when developing your components:

RPCL_VERSION_MAJOR //Major version number for the RPCL, i.e: 1
RPCL_VERSION_MINOR //Minor version number for the RPCL, i.e: 0
RPCL_VERSION       //RPCL version, i.e: 1.0
 
RPCL_FS_PATH       //Filesystem path to the RPCL
RPCL_HTTP_PATH     //Webserver path to the RPCL

You can use the version defines to make your code compliant with the diferent versions we release and the path defines to allow you abstract your code from paths and make it more portable.

Personal tools