开发者

How to include the Zend framework?

I'm on windows 7 with wamp and I don't know where to put the zend framework, as I know I need to change the path of the include_path but I don't know what should that be to work.

I get this error when I open the test files or anything withing the zend files:

Warning: require_once(PHPUnit/Framework.php)

[function.require-once]: failed to open stream: N开发者_运维技巧o such file or directory in C:\wamp\www\zend\tests\TestHelper.php on line 26

Fatal error: require_once() [function.require]: Failed opening

required 'PHPUnit/Framework.php' (include_path='.;C:\php5\pear') in C:\wamp\www\zend\tests\TestHelper.php on line 26


It's failing to find PHPUnit/Framework.php, so it does not appear to be a Zend Framework issue. The question is: Where you have your PHPUnit files installed?

I see an include path that contains C:\php5\pear. Is the PHPUnit library there?


You can place the zend framework directory anywhere you like, it doesn't matter. Generally I place it in a common folder shared by all my projects.

As long as you add the path to the zend framework lib directory to your include path you are right. Anything outside the lib directory is for extra stuff and should not be included in your application - this seems to be where your problem lies.


I'm using Zend Server Community Edition it's set include paths and has installed required pear packages by default.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜