Zend framework in Xampp

两盒软妹~` 提交于 2019-12-02 05:37:34
  1. Your path should probably be C:\xampp\zend\library\Zend.

  2. You shoulnd't take the framework to the global include path but have it as a dependency in your project, soon you'll have two projects with two different versions of ZF and then the global option creates troubles

Hi there finally after doing every possible tries,my error was gone. I don't know other cases but in my case i have done a series of mistake.So as i corrected them the error was gone.Here is what i did

1.In ZendFramework-2.0.5 the loader.php was missing.So following error occured

Exception thrown trying to access Zend/Loader.php using 'use_include_path' = true. Make sure you include Zend Framework in your include_path which currently contains: .;C:\xampp\php\Zend\library\zend\;C:\xampp\php\PEAR;

For this i downloaded the ZendFramework-1.12.0(only in my case).And Loader.php was there

2.No two mistake of mine was i fractured the path from half. i.e.If my folder structure was like ZendFramework-1.12.0/library/Zend/..I add the half path to php.ini file

include_path = ".;C:\xampp\php\PEAR\;C:\xampp\php\Zend;"

which was a mistake so i, gave the path before the library folder

include_path = ".;C:\xampp\php\PEAR\;C:\xampp\php\Zend\library;"

and placed the folders according to path.

3.And what about environmental variables i read about? They are not neccessary while installing the ZendFramework for the first time.After it i am not in that condn to say whether it should be added or not environmantal variables

C:\xampp\php

So,after doing above mentioned corrections and checking through the installation checker the error was gone.

And remember to restart(start and stop) the apache server after a tiny change in php.ini file. thanks to markus-tharkun and Seth Battin a lot.You saved me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!