ZendSession giving fatal error when trying to include...

Posted by Ronedog on Stack Overflow See other posts from Stack Overflow or by Ronedog
Published on 2010-05-18T21:18:28Z Indexed on 2010/05/18 21:20 UTC
Read the original article Hit count: 252

I'm getting an error when trying to include Session.php for the ZendFramework.

Here's how I include it:

$ZEND_LIBRARY_PATH = "path_to_zend_library_folder";
set_include_path( get_include_path() . PATH_SEPARATOR . $ZEND_LIBRARY_PATH); 
include_once '../classes/zend/library/zend/Session.php';
$account_info = new Zend_Session_Namespace('account');

The file gets included ok, but I get this error: Cannot redeclare class Zend_Session How can I get this to work?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend-session