I have eclipse 3.7.2 to work on PHP projects that are on remote Linux servers that can be accessed by SSH.
I installed eclipse RSE (Remote System Explorer) and I used it to add a remote project and configured it as a PHP project.
best practices for Zend Framework 2 projects is to include the used Zend Framework version within the sources of the application, but what happens then is that whenever I reopen eclipse it tries to build the project and validate the entire zend framework directory.
how can I choose that the auto builder will ignore that directory since it's not something that I modify. in general I have no idea why it needs to validate that directory every time and it does not check for md5 on the directory content before trying to validate every time. but it this can't be fixed, i need to ignore the entire zend framework directory foom auto building.
using Eclipse 3.7.2 with PHP plugin.
using Zend Framework 2.0 beta4 with basically the skeleton application and modules that are provided from the zend framework site.
thank you! :)
In the latest ZendSkeletonApplication, you'll see in index.php that you can place ZF2 outside of the project as long as you set the ZF2-PATH environment variable.
it seems that it's possible to do that.
i just need to right click on the directory i want to exclude from auto-building.
then to go to Build Path => Exclude.
this excludes the directory from auto-building and resolves the issue.
Related
I just inherited an application that is Magento with an Angular frontend. The Angular code is wholly contained within a single subdirectory of the Magento application. I can set up a PHP project in NetBeans and I get PHP autocomplete and other goodies, but no love for the Angular .js files. The goal is to have both PHP development goodies and angular development goodies. All the code is in one git repo (else this would not be an issue, I could just have two separate directory trees).
NetBeans will not let you create a project within a project. I've tried stitching the codebases together with a symlink both directions, and either git doesn't like it (refusing to treat the symlink as a directory), or NetBeans doesn't like it (still seeing the Angular files as residing with the already existent PHP project).
Anybody have any ideas? Changing the repo structure (like using a git submodule) is not an option currently.
You cannot make "a project inside a project", that is correct. :)
In your project, check if in Remote Files (next to Source Files in the Projects tab) you have the necessary JS files. If not, you have to link to them in your project.
Also what version of Netbeans are you using? It should work in the latest ones (8.1 and up) but may not work in earlier (8.0 and below).
I'm reading Reference Guide::Create Your Project. And it's written there:
In order to create your project, you must first download and extract Zend Framework.
After you have installed Zend Server, the Framework files may be found
under C:\Program Files\Zend\ZendServer\share\ZendFramework on
Windows. The include_path will already be configured to include Zend
Framework.
I didn't download Zend Framework or installed Zend Server (I have XAMPP installed with Apache and have localhost and can load php files in browser. I don't need any more server, I think). I just downloaded and instaled Zend Studio 9 and after the instalation I went this way:
File --> New --> Example...
and chose Zend Framework Example Project and named my project "zend_project_example".
Then it was written that somthing was being instaled and it took quite a long time. Then I got this tree in the PHP Explore folder. And I even opened the Controller code from Zend Framework Library:
So it seems I have ZF, but I don't have anything in:
C:\Program Files\Zend\ZendServer\share\ZendFramework.
In fact I only have Zend Studio 9 folder threre: C:\Program Files\Zend\Zend Studio 9.0.2.
No any \ZendServer\share\ZendFramework
And in the Reference it is written:
Open a terminal (in Windows, Start -> Run, and then use cmd). Navigate
to a directory where you would like to start a project. Then, use the
path to the appropriate script, and execute one of the following:
% zf create project quickstart
I doesn't work for me. I can't do any steps farther in the Reference Guide. What should I have to solve and what should I have to do next to follow the Referance right way?
Thank you.
Zend Studio is just an IDE - an environment which is supposed to make developer's life easier. You need a server to run your projects on localhost. You quoted
After you have installed Zend Server,
and you wrote
I didn't download Zend Framework or installed Zend Server,
You can't expect the tutprail to work if you don't do what it says.
http://www.zend.com/en/downloads/
this is to download link for zend server and which would you like preferred you choose and you save manually and double click on setup file easy to install on your system
I have a mac, and want to set up Zend Server. I am not a php developer but experimenting and when in stalled it and all, i can access the administration control etc, but when i try to add my own code to the rood documents folder, it says it can't find the site. Im not sure if it is the right place to put it, but its located in the same folder as the zend server symlink.
Are there any other tweaks I'm supposed to do? I just installed using the dog installer package that zend has for the mac.
Any help would be awesome.
I think what you need is a screen cast to better understand the concept, so here is one:
http://www.youtube.com/watch?v=097GoCeZm2U
I am quite new to PHP Environment and I've started learning it so I've installed ZendCore. I was trying to change root directory to separate the root from ProgramFiles like inetpub so I change PHP Server Root and localhost:81/ still works but not run the under the folder I created, instead it points at the same old default folder but the problem is ZendCore is not working and it says No input file specified. when I type in localhost:81/ZendCore/
What should I do?
Well ... first of all I'd stop using Zend Core and Start using Zend Server or Zend Server CE unless there is a compelling reason to use Core. Core is Zend's older product and has been replaced by Zend Server.
I am interested in the PHP framework, especially by symfony and ZendFramework, but I am not sure of one thing: I saw the need to type command lines to create a project with these frameworks. Ok, but once the project is finished, is it possible to move files to another server without installing anything (except for Apache)?
Thank you in advance
Ps: No report, but do StackOverflow uses a framework?
It is absolutely possible to run a symfony or zend framework application without installing the framework on the server. Symfony has a special mechanism to pack everything into one folder. If you use zend framework you basically have to copy the "Zend" folder to your "lib" directory and you are ready to go.
As far as I know, StackOverflow is build on ASP.net and C# running on several windows servers.
Firstof, most of those commands are needed for development only. But also you do not have to have the commands in your global path, it's also possible to execute the scripts directly.
In case of symfony that would be something like
./symfony-framework/data/bin/symfony
if you installed symfony to symfony-framework.
I believe stackoverflow is based on .NET MVC or plain ASP .NET - http://meta.stackoverflow.com will give you that answer
With Zend Framework, it is possible. The Zend_Tool part, which sets up the basics of your project is just addition. You can, but you don't have to use it at all. You can just write the project from scratch yourself, just stick to the standard project architecture.
Anyway, once the project is ready, it does not need any command line setup, other than mayby setting correct file system permission if your project needs to write some files.
I can't say about symphony, but I assume it also can be just copied to the target server.
I don't know, how about ZF, but project made with Symfony can be easily moved to another server just by copying files. However it will be difficult to maintain your project without commands. Also you have to copy all Symfony's core files to your server, but it will be better to install Symfony there before.
About Symfony:
Usually, you develop locally on your dev environment (using Wampserver or MAMP for example). You will require access to the command line to run symfony commands, specially for complex tasks like ORM tasks. So you have to install symfony on that environment.
According to the official doc the recommended installation method is through SVN (either the trunk or a tag) inside your project folder.
When you'll push the files from your dev environment to another (using project:deploy if you can), all the required files will be pushed.
So there is no need to install (in the sense of "run" or "execute") anything on the live environment server. The only "installation" method that requires an access to the command line is the PEAR install method, which is not recommended.
The only problem that I had when I deployed an application was a user permission problem on the cache folder, but that's easy to fix by changing the folder permission.