Thanks for the information. I got the require_once to work with this code:
define('SERVERPATH',$_SERVER['DOCUMENT_ROOT'] . "/zenphoto");
define('WEBPATH','/zenphoto');
require_once(SERVERPATH.'/zp-core/template-functions.php');
Unfortunately my first call failed on this line of code:
$gallery = new Gallery();
This is the error:
[17-Oct-2013 10:50:11 America/Los_Angeles] PHP Warning: Invalid argument supplied for foreach() in /Volumes/Data/htdocs/AmColAn/zenphoto/zp-core/functions-basic.php on line 231
[17-Oct-2013 10:50:11 America/Los_Angeles] PHP Fatal error: Class 'Zetcho\AmColAnBundle\Controller\Gallery' not found in /Volumes/Data/htdocs/AmColAn/symfony/src/Zetcho/AmColAnBundle/Controller/SurnameController.php on line 112
Here's the code from functions-basic.php starting at line 231:
foreach ($_zp_cachefileSuffix as $key => $type) {
if ($type) {
$_zp_supported_images[] = strtolower($key);
}
}
It looks like zenphoto is not going to work inside of a symfony framework.