We NEED ZEND .zfproject.xml for SOCIAL ENGINE Netbeans Developers - zend-framework

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.

Related

How to get eclipse content assist working in XML files

I have started creating the Spring web application where I need to mention the spring classes in the XML configuration files, for ex, the deployment descriptor (web.xml) where I need to mention the DispatcherServlet class of Spring.
What I am looking for is, I want eclipse to show me the list of packages/classes when I type org.springframework..., like we do in the Java editor. I have googled to find out, but no luck. I am sure there would be plugins available. Can any of you please share me on how to fix this?
Since you are working on a spring project, I'd recommend installing the SpringToolSuite (STS). The info page is here: http://spring.io/tools
Since you already have an Eclipse instance that you are working with, you should go with the update sites: http://dist.springsource.com/release/TOOLS/update/e4.4/
(Make sure to use the correct update site for the Eclipse version you are using.)
Not only does STS include all tools for XML editing, but it also includes special tools for editing your Spring application files.

Zend Framework issue in run command in netbeans

I am trying my hands on using Zend framework with netbeans.
I have setup everything correctly as i can create project using ZF command line and can create other controller and actions.
But when i setup project in netbeans and use run command it does not seems to understand Zend framework MVC url structure and shows complete path in browser.
instead of running http://testing.com/about
it is taking http://testing.com/application/controllers/AboutController.php
but when i type is manually everything seems to be working fine.
you need adjust a few settings in your project properties. Open your project properties menu and select Sources make sure your Web Root is set to public, while you're there make sure your sources and project folder are correct.
Next select Run Configuration and make sure your Project URL is correct. When using ZF there is no need to specify an index file, netbeans may complain some but it will work.
Now when want to run your project you have to run the whole project. When using ZF you can't run just one file because all request are routed through the index.php in the public folder. So Always select run at the project level and not at the file level.

Installing Zend Framework with XAMPP

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

How to Manage static files module in Netbeans

I've been using Netbeans for a while, but can't find a good way to manage SVN modules that contain only "static" files. Specifically modules that aren't compiled etc. Examples are database scripts or shell scripts that help manage deployments.
Right now what I've done is checked out the module from SVN (ie http://svn/db/trunk), and loaded them into Netbeans as a PHP project. This let's me navigate through the code tree, but it's not ideal.
Is there a better way to do this?
Thanks
--Matthias
Why not view these "static" files through the Favorites tree (ctrl+3)? Then you don't need to create a NetBeans project, but you can edit them and do source control stuff.
You could add the folder to the 'Include path' option in Netbeans, either globally or for specific projects. This allows you to access them whilst working on the projects which depend on the code in question, but without the modules being part of a netbeans project.

How do you add a PHP framework to code completion/assist in Eclipse PDT and can the framework be added as default for all projects?

How do you add a PHP framework to code assist/completion in Eclipse PDT?
And is it possible to have that framework added as default for all projects?
Generally speaking in Eclipse, you can add a library or framework to code assist/completion by:
Going into Project > Properties
Under PHP Include Path, pick the "Libaries" tab.
Add an "external folder" with the path to where your framework is located.
This can also be done on project creation. I'm not sure of a way to have it automatically attach a library in this way.
The feature itself is a bit more flexible than that, allowing you to do things like set variables for a DB connection, rather than having to copy down lengthy config files to your local install.