2013-10-12 31 views
0

我試圖使用PHPPowerPoint(我從http://phppowerpoint.codeplex.com/releases/view/26621下載);我下載了包含庫和用於生成Powerpoint的測試代碼的源文件。它工作正常如果我在Web表單應用程序中使用它; howerver我必須在CodeIgniter MVC應用程序中使用它,所以我把名爲「classes」的庫文件夾放置在codeigniter框架的「libraries」中,並且Im試圖使用其中一個示例代碼(它們提供用於生成Powerpoint)我的模特;但掙扎了幾個小時後,我無法修復的要求這是我從smaple代碼(01simple.php)獲取路徑和它給了我下面的錯誤:在MVC Codeigniter中使用PHPpowerpoint

Fatal error: require_once(): Failed opening required 'PHPPowerPoint.php' (include_path='.;C:\xampp\php\PEAR') in 

C:\xampp\htdocs\Project1\application\libraries\PHPPowerpoint\Classes\PHPPowerpoint\Slide.php on line 30

能否請你幫我怎麼可以在MVC CodeIgniter中使用這個phppowerpoint庫?我真的很感激,如果你能幫助我設置。對不起,如果我的問題含糊不清,請讓我知道,我會提供更多信息

回答

1

它基本上看起來像你有你的路徑問題。我會檢查你要求的地方,與圖書館在服務器上實際存在的位置有關。你可能只需要玩弄你的要求陳述。

也許這個鏈接會幫忙嗎? http://www.codingforums.com/archive/index.php/t-258928.html

+0

我在新的評論中添加了我的調試嘗試;我真的很感謝你的幫助:) – user385729

+0

你在評論中的幫助解決了我的問題!謝謝:) – user385729