简体   繁体   中英

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: No 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.

我正在使用Zend Server Community Edition,它设置了包含路径,并且默认情况下已安装了所需的pear软件包。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM