下一次請把錯誤訊息一起列出來,這樣要查比較快。
原因是因為你少 include 了 userinfo.class.php,請參考:
<?php
if (!defined( "PLOG_CLASS_PATH" )) {
define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
}
include_once( PLOG_CLASS_PATH."class/bootstrap.php" );
include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
SessionManager::init();
$userInfo = &SessionManager::getSessionValue("userInfo");
/*
* Created on 2006-7-8
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
?>
<html>
<head>
<title> test
</title>
</head>
<?
echo $userInfo->getId();
echo $userInfo->getUsername();
?>
</html>
Mark