I've Xampp installed on my computer, and I want to install Zend Framework. I noticed there is already a folder called Zend inside the xampp/php/PEAR/Zend
Does it mean the Zend framework is already installed? On phpinfo, the include_path is .;C:\xampp\php\PEAR. Do I need to configure the path? What should be the new path?
Finally how can I know if the Zend framework is installed successfully and ready to use.
Thanks for any help.
Zend framework is intensively developed and i doubt that xampp package include up to date version, so I recommend you to download latest full version from http://framework.zend.com/download/latest and extract the archive somewhere else.
Zend Framework requires no special installation steps. Simply download the framework,
extract it to the folder you would like to keep it in, and add the library directory
to your PHP include_path. To use components in the extras library, add the extras/library
directory to your PHP include_path, as well.
If you would like to use Zend_Tool, simply add bin/zf.bat (for Windows) or
bin/zf.sh (for anything else) to your system executable path.
The important files of Zend framework are located in ZendFramework-1.x.x\library\Zend in the archive and the ZendX (extras) are in ZendFramework-1.x.x\extras\ZendX. You might also need the ZendFramework-1.x.x\bin folder where is the ZendFramework console tool (zf)
I prefer extracting the "ZendFramework-1.x.x\library\Zend" into a folder lib\Zend and add it to the include path in php.ini
Installing zend framework on Windows
Download zend framework.
Include the zend lib path on your php.ini file (If you have zend lib within c:wampp/www/zend/library/ then put the path in php.ini include_path="c:/wampp/www/zend/library").
In the downloaded folder there is bin folder and there is file zf.bat so open that file and put the pull path of php.exe.
Go to command prompt and go to directory where you need your project.
Run this command:
C:\\wampp\www\zend\bin\zf.bat create project project_name
Related
My book tell to add PHPUnit path to Global Include Path in Netbeans, but its use out of date PEAR way.
I installed PHPUnit using composer global require "phpunit/phpunit xxx". I run this command right in c:\
I got main PHPunit directory in: C:\Users\xxx\AppData\Roaming\Composer\vendor\phpunit
and two files in:
C:\Users\xxx\AppData\Roaming\Composer\vendor\bin
It depends, on how much code-completion support you want.
If you want the code-completion to work for all globally installed Composer packages,
then the path would be
C:\Users\xxx\AppData\Roaming\Composer\vendor
When you set this "Include Path" Netbeans will automatically scan the whole vendor folder and provide completion support for all classes of all packages. Scanning might take a while...
If you want completion support only for PHPUnit, then adding
C:\Users\xxx\AppData\Roaming\Composer\vendor\phpunit
is sufficent. Only the content of the phpunit folder will be scanned.
(I use the first approach, because PHPUnit has several other dependencies/packages (e.g. phpunit-selenium) and its nice to have support for these classes, too.)
The bin folder should contain a batch file: phpunit.bat.
This script might be used in the testing/ phpunit configuration as the "PHPUnit Script". When you invoke testing, this script will be used to start the Composer installed PHPUnit (, instead of the PEAR one).
We have an installation script written in install4j.
Our installer needs to call custom code from the library jniwrap.dll.
We included jniwrap.dll into the install4j project and declared it in 'Installer' > 'Custom Code & Resources'.
Unfortunately the installation fails: jniwrap.dll cannot be loaded because it's not in the search path.
Do you know how the error can be fixed?
What about the jniwrapper's license file? Do we have to insert it to the install4j project, too?
Thank you in advance.
Unfortunately the installation fails: jniwrap.dll cannot be loaded because
it's not in the search path.
The parent directory of the extracted file will not be in the search path. You have to call
System.load((String)context.getVariable("sys.resourceDir")
+ File.separator + "jniwrap.dll");
to load the library.
What about the jniwrapper's license file? Do we have to insert it to the
install4j project, too?
If it needs to be in the same directory as the DLL, then yes.
Most of the Social Engine Developers use Netbeans. Netbeans doesn't treat any project as ZEND without the file .zfproject.xml. hence Netbeans doesn't provide important tools like ZEND command GUI tool.(even if it provides, it won't work).zfproject.xml is used by Zend_Tool to store information about created controllers, actions, etc. within project How can I have a .zfproject.xml file for NETBEANS which reflect the directory, file etc structures of social engine.
I found dat .zfproject.xml requires the following files to recognize any zend project. Where are these files in SOCIAL ENGINE context.-
/configs/aplication.ini (configuration file)
/controllers (controllerdirectory)
/bootstrap.php (the first bootstrap file)
SE4 doesnt have application.ini, just several php files in application/settings/
controllers placed inside modules folder (e.g. application/modules/Core/controllers)
application/modules/Core/Bootstrap.php
Try this manual, hope it help: Setup Netbeans for Zend Framework Development
Thanx for the reply. Yes I have already realized what u said but still we cant get the directory structure in socialengine to work as core zend application.The link u posted is all about setting netbeans for zend,which I did easily, but not for SOCIALENGINE.The .zfproject.xml created by Zend Tool is all about this.By default it maintains everything about zend, not socialengine.It also requires an application.ini, which socialengine doesnt have.Zend also starts from application/modules, whereas social engines starts from application/modules/mymodules.Only if we could reflect these changes into .zfproject.xml to match socialengine, that wud be it.
for a certain project I need to downgrade the ZEND version in my XAMPP v0.3 on a Mac from 2.2.0 to 1.11.11. Unfortunately adding the path to include_path:
include_path=".:/Applications/xampp/xamppfiles/lib/php:/Applications/xampp/xamppfiles/lib/Zend"
does not show any effect.
Does anyone know how to do this?
Thanks and cheers,
Sven
First of all the base folder for your Zend library should probably be /Applications/xampp/xamppfiles/lib/ and not /Applications/xampp/xamppfiles/lib/Zend.
Finally it's very simple. The version of Zend depends on the content of the folder Zend inside the library folder. Right now I guess it is occupied by v2.2.0 and you'll have to either replace this folder with contents of v1.11.11 or use another (new) library path with a Zend folder containing the older version. Then you use this new library path in your include_path.
Note that if you have or need other folders inside this new library you'll either have to copy those folder or (sym)link those folders into the new library folder.
I am new to zend framework.I have placed my bin and library folder in :
C:\xampp\htdocs\zend
and have created project using command prompt.
C:\xampp\htdocs\zend\bin> zf create project zendtest
its creating project zendtest in folder -> C:\xampp\htdocs\zend\bin\
C:\xampp\htdocs\zend\bin>cd zendtest
but when i tried to create module
C:\xampp\htdocs\zend\bin\zendtest> zf create module testmodule
its saying 'zf' is not recognised as internal or external command .
On creating controller also giving same error.
How to solve this issue.
You need to add it to your system's PATH. Take a look here:
http://framework.zend.com/manual/en/zend.tool.extending.html#zend.tool.extending.zend-tool-framework.cli-client.setup-windows
Should be as simple as adding the path to your Zend Framework's bin folder to the PATH, and you should be set.
First you have to go to your project path and then move to path from where your command will run
c:\xampp\htdocs\project_name>..\Zend\bin\zf.bat create module
module_name