So, I have recently installed the new Zend Server CE 6.0.0.
Now, if I go to localhost:10081/ZendServer/ServerInfo/ I get the following info on top:
- PHP Version 5.4.11
- Zend Server Version: 6.0.0
- Zend Framework:1.12.1, 2.1.1**
- Zend Server Gateway: 0.9.0.201301302347
- Build: 68518
As you can see, there are two Zend Framework versions installed, 1.12.1 and 2.1.1.
If I use echo Zend_Version::VERSION; in my application it shows me 1.12.1.
Question: How do I switch these different versions? And how am I able to add even more versions (e.g. additionally 1.12.3)?
if you are using non namespaced code you are using Zend Framework 1:
if the code is namespaced it's Zend Framework 2:
you're not likely to use the wrong one by accident.
With Zend Server both versions of Zend Framework are located in the
/ZendServer/sharedirectory (windows) and included in thephp.ini include_path. If you don't want one or the other available edit it out of youphp.ini include_path.NOTE: often the
include_pathentry in thephp.inifor Zend Server is located at the end of the document instead of in the usual location.This is the easy part;
Add the new version to the
Zendserver/sharedirectory and then add the new path to thephp.ini include_path.Path
Good Luck