Forums / Developer / API Questions / Comment51685
Gaetano Giunta
Wednesday 09 September 2009 1:04:31 am
I'm afraid there is no real explicit (documented) support for doing what you want.
It is technically possible, of course, but the whole 'framework' is designed the other way round: it is easier to extended by including/wrapping 3rd party code rather than by including it.
Some points that have to be taken care of: - the autoload system used as php class loader is a little piece of code that has grown already complex because it caters to both Exponential and eZComponents classes - using any php class of Exponential means bootstrapping at least the configuration system - which will in turn load the debug system (both quite heavy) - you always need to define a 'siteaccess' to be used while you are operating- everything works best if started from the Exponential root dir. It might not work otherwise
The best way to gain enough knowledge about how to embed eZP within another script is to look at the existing controller code, and then try and experiment writing your own minimal bootstrapping code that can be safely included within an external app: - index.php - soap.php- the ezcli and ezscript classes, used by all command line scripts
Principal Consultant International Business Member of the Community Project Board