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.
Related
I am using Netbeans 8.2 and I want to use it for Laravel project. I know it is possible to create a Laravel project in Netbeans without going to cmd (This is what I am trying to achieve) I have followed these steps to create a Laravel project
Install Composer on your system
Installer the Composer plugin for Netbeans (It's in the plugins menu, under the PHP category).
New Project > PHP Application
Go though the wizard, and setup your project. the last step should be named Composer
In the last step,search (under Token:) for laravel
Select laravel/laravel: The Laravel Framework. and move it to the selected frameworks on the right
Click Finish, and you're Done!
Everything went fine! and I am able to create a laravel project from wizard unfortunately as I can see some folders and files (which are always there in Laravel ), I have spend some some hrs searching for a guide on how to integrate Laravel in Netbeans without success. Please help what is wrong with my steps?
My Netbeans project structure
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.
I'm trying to create a new project. But it won't finish creating the project. It stops at 29% and remains there indefinitely.
Steps I'm taking:
1. Choosing project type (php).
2. Choosing name and location (it's an existing project, also netbeans data goes into another folder)
I'm not copying the sources folder to another location.
IOS - Windows 8.1
Netbeans version - 8.0.2
edit: The project wasn't done previously in netbeans
As you may know, Netbeans projects have a folder/dir with name "nbproject".
Did your exiting project have "nbproject" Folder ?
I am experiencing a problem: Eclipse doesn't detect the environments of my Symfony 2 project.
This means I can't configure the "Launch Configuration". I have no idea why... I use the Plugin from here: http://symfony.dubture.com/
This is how it looks on my PC (empty dropdown menu for the environments): http://abload.de/image.php?img=eclipsesymfony2env0lu66.png
This is how it should look like: http://symfony.dubture.com/images/screenshots/configuration_tab.png
In the folder app/config, there are a config.yml and config_dev.yml, config_prod.yml and config_test.yml among some other files.
Versions:
Symfony 2.7
Eclipse 4.4.2 (PHP Plugin and the Symfony 2 plugin are up to date)
PHP 5.6 VC11 x86 Thread Safe
Apache 2.4.10 VC11 x86
Win 7 SP 1 x64 (admin account)
Greetings
Make sure that routing code assist works (for ex. source -> insert symfony route). If not, make sure "Dumped container" path is set correctly (project properties -> symfony)
Create launch profile and select web/app(_dev)?.php file
Go to symfony tab ;)
In order to find environments, plugin Symfony Dubture needs web folder added to Include Path (Project Properties -> PHP -> Include Path -> Source tab -> Add Folder button -> web folder should be checked).
Current version of the Symfony Feature (1.1.1) has all controls disabled in Symfony tab in launch configuration dialog. Code which obtained environments and routes stopped working correctly and hence this tab is now turned off and should not be used.
In order to run/debug Symfony app, launch configuration should be configured manually. It can be done in the following steps:
In Debug/Run Configuration dialog, create new PHP Web Application configuration.
In File field enter text in the format: \<projectName>\web\app_dev.php.
In the Server box, select Configure button to open Edit Server dialog.
In the Server tab, Document Root field should point to the project parent folder.
Prior to use of the created launch configuration, start the php built-in web server using the command: php -S localhost -t path/to/project/parent/folder
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