Saturday 09 May 2009 3:02:14 pm
<i>Is the ezc folder located in the correct place?</i> The ezc folder can be anywhere you want, as long as php knows where to find it when it needs to load some ezc classes. <i>Do I have to create a config.php to adjust the include path to have the eZ Components classes available via PHP?</i> You have basically 3 options to tell ezp where the ezc class files are: a - in php.ini alter the include_path setting so that c:/wamp/bin/php/php5.2.9/PEAR/ is part of it. As per the ezc instructions, you need to have the top-level pear directory in the include path by default, not the ezc subdir b - as you have done, create a config.php in the top level dir of ezp, and alter the php include path in there. Note that you miss the c: part in your path, and possibly have to remove /ezc at the end c - in the same config.php file, set instead the constant EZC_BASE_PATH to the location where the ezc file 'base.php' is found Method c + reducing the include_path to '.' will give you a slight increase in performance, as php will look in less directories when searching for include files.
<i>In which PHP script do i have to add the scripts that are referred in the autoload environment setup section at the installation guide?</i> No need for that, as ezp takes care of setting up properly autoload chains, as soon as it can find out where the ezc are
Principal Consultant International Business
Member of the Community Project Board
|