From: Steven L. <st...@tu...> - 2003-11-05 21:17:19
|
Hello Everyone, There is another necessary change I have recently discovered which was not covered in the docs that I sent out. If you are the using the approval or fatcat module you will need add a require_once() in the conf files for each class that is needed. Examples: announce/conf/approval.php <?php if($_SESSION["OBJ_user"]->allow_access("announce")){ require_once(PHPWS_SOURCE_DIR.'mod/announce/class/Announcement.php'); if ($approvalChoice == "yes"){ PHPWS_Announcement::approve($id); } else if ($approvalChoice == "no") { PHPWS_Announcement::refuse($id); } else if ($approvalChoice == "view") { $ann = new PHPWS_Announcement($id); echo $ann->view("small", TRUE); } } ?> calendar/conf/fatcat.php <?php require_once PHPWS_SOURCE_DIR . "mod/calendar/class/Calendar.php"; $className = "PHPWS_Calendar"; $methodName = "viewFatCatEvent"; ?> And thats all. -- Steven Levin Computer Systems Admin I Electronic Student Services Appalachian State University Phone: 828.262.6740 http://phpwebsite.appstate.edu |