开发者

ZendSession giving fatal error when trying to include

开发者 https://www.devze.com 2022-12-31 11:44 出处:网络
I\'m getting an error when trying to include Session.php for the Zend Framework. Here\'s how I include it:

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

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?


It looks like you are trying include that class second time.. Try to comment include_once line and check if it works without it. Maybe you use autoload already.

0

精彩评论

暂无评论...
验证码 换一张
取 消