开发者

ZendSession giving fatal error when trying to include

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜