I'm currently working on a tutorial for PhpStorm with Symfony... but I'm stuck :/
https://knpuniversity.com/screencast/phpstorm/forms#play
I cant create a form file with the Symfony plugin (like at the very beginning of the tutorial link), when I press Cmd + N on the appbundle and the click on form (with the Symfony logo...) nothing happens - PhpStorm doesn't respond and create a new file...
Can anyone help me with that please?
I reinstalled the plugin already and rebooted and so on...
You have to set your project as symfony project first:
file > settings > langages & framework > Symfony and then enable it
I am assuming that you are editing files locally and then uploading them to a webserver - rather than editing the webroot directly. If the latter then my suggestion is unlikely to help.
I was able to fix it by;
Closing the project in Symfony.
Creating a new project from my existing remote files, in a new local repository
Downloading the files from my development server to my local repository (my dev server is actually a VM hosted on my development machine, but I don't think that is important).
Allowing phpstorm to do its normal startup stuff recognising namespaces
Enabling the symfony plugin in File/Settings/Languages & Frameworks/Symfony
I did not need to restart phpstorm although the plugin says you need to to enable plugin for the project
This fixed the problem for me, and also fixed a certain amount of Symfony specific 'autocomplete' which wasn't working for me either.
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 am trying to install Symfony, but unable to find how can we start with symfony with Xampp. I have already tried on google but there is no proper solution for installation and configuration of Symfony.
As I want to edit a project which is already developed using symfony CMS.
Symfony is not a CMS.
If you need to run a symfony app locally, all you have to do is to copy all files into a project subdirectory inside your Xampp (for example htdocs/symfony).
I assume existing project will have a database, so be sure to import your database locally or use external database. You need to tweak your symfony config file: http://symfony.com/doc/current/configuration.html
I am trying to install Symfony, but unable to find how can we start with >symfony with Xampp. I have already tried on google but there is no proper >solution for installation and configuration of Symfony.
As I want to edit a project which is already developed using symfony CMS.
Hi, for begin Symfony is not a CMS but a framework ^^, it's a little bit (alot) different.
For install Symfony WHY use google O_o ----> http://symfony.com/doc/current/setup.html
After, why Xampp ? for windows use Wamp who do the local server it's more performing :/
And if you want you don't have necessary to install symfony if it's an existing project -> just clone it (if he is on github) ... and just open the complete folder with your IDE or text editor.
You can modify the file without problems, (just you can have a prob for use command php bin/console.
Good luck i hope it's answering all you questions :)
I have a Yii 1.x project, and i use Netbeans 8.0.2. In this website there is an admin folder in web folder. This is one netbeans project but 2 yii project with one framework (one for users, one for admins). When i am in the web folder the auto complete works, however it doesn't work in web/admin folder.
I tried everything:
-Delete cache manually - C:\Users\username\AppData\Local\NetBeans\Cache\8.0.2
-Reinstall Netbeans
-Delete the project without source code, after create a new project.
-Code completion on. (tools->option->editor->codecompletion)
-Updates
Here is my "about":
Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1250; hu_HU (nb)
User directory: C:\Users\Siki\AppData\Roaming\NetBeans\8.0.2
Cache directory: C:\Users\Siki\AppData\Local\NetBeans\Cache\8.0.2
So can i enable auto complete?
Since you are using Yii 1.x, there is a certified NetBeans plugin for Yii 1.x in its plugin repository. This plugin will provide options like
Creating new Yii project from netbeans. No need to use Terminals
Code completion.
Go to a Class file by clicking on accessible snippets.
Plug this in you NetBeans to get above benefits as well as to overcome auto code complication problem, which you mentioned in your post.
Plugin page # http://plugins.netbeans.org/plugin/47246/php-yii-framework-netbeans-phpcc
In project properties > Include path, add the folder where are the yii framework base files
Right click over the project in tab projects, then select properties
Image project properties
This enables code completion.
I am imported my Project trough git, the project is a php project running on symfoy2.
However it seems that intelliJ does not recognize it as a php project and therefore only shows a bunch of files (static web files such as .js, images, ... )
I was wondering if there is a fix for this, i did the following already:
- Installed php, symfony2 modules
- I am running IntelliJ Ultimate
I removed the existing modules (in project structure settings) and added the web module, that fixed my issue
I'm trying to run a Symfony project that I cloned from a GitHub. I've never used Symfony before but I'd like to run the project.
I read you needed to run frontend_dev.php so I ran that in to my browser:
C:\Users\Computer\Desktop\Project\WebInterface\web\frontend_dev.php
But just got a blank page with some PHP on it. I believe I may have to set up a web server but I'm not sure and figured I'd ask here first.
If I wanted to run the project from my computer, would I just download an Apache server and drop it in the root directory? What variables and files would I need to change to get it working properly? Do I need to forward any ports?
Symfony 1.x branch is not supported anymore. Use Symfony 2.
Anyway, concerning your question: here is the doc for 1.4: Day 1: Starting up the Project