PHP Eclipse - importing existing CakePHP projects - cakephp

I'm trying to import existing Cake 1.2 projects into PHP Eclipse (latest all-in-one download on Galileo build) - I don't think I understand Eclipse properly:
1) I have created Workspace on my web root C:\Program Files\xampp\htdocs
2) I have created new Project C:\Program Files\xampp\htdocs\EclipseCake
... how do I import my existing cake project into my new project (EclipseCake) ?
I tried Configure Include Path -> Project -> Add ... but no file browser appears. I'm obviously misunderstanding this.

There's an "Import" in the menu if you right click the new project's name.What you need to do is click it and choose "Filesystem" and click "next" button.You may read this tutorial about eclipse.

Related

Upgrading ExtjJS6 project to ExtJS7 - How can I make the new "Open Tooling" work with multi-app workspaces?

I have ExtJS 6.2 project with multi application workspace.
Trying to figure it out how to upgrade it to ExtJS7.
According to documentation I should use ext-gen migrate, but when running it I'm getting the following error:
'Upgrade multi-application workspace is not yet supported'
How can I make the new "Open Tooling" work with multi-app workspaces?
Open tooling or not does not matter if you follow the following:
download ExtJS7 (here ExtJS 7.4)
create a new workspace
copy content of folder ext to ext-7.4.0 in your current project
workspace.json (add to frameworks)
"ext74": {
"path":"ext-7.4.0",
"version":"7.4.0.42"
}
app.json (inside your apps)
"framework": "ext74",
go over the release notes of each version between your current version and the version you want to upgrade to. Example:
https://docs.sencha.com/extjs/7.3.1/guides/whats_new/release_notes.html

import / opening existing Codenameone project from Netbeans / Eclipse to IntelliJ does not work

Finally, I thought of moving my project from Eclipse to IDE to IntelliJ. So, I carried out the following steps:
1. Installed Codenameone plugin in IntelliJ.
2. Import existing project to IntelliJ. Now I project structure is as shown in the figure.
Here, CodenameOne-Project is the main project including source folders images and all. The common and barcode-common consists of java classes required for main project(i.e.CodenameOne-Project). So, I am able to import CodenameOne-Project in IntelliJ, and if I add other folder as module by adding dependency and all, it dont look like CodenameOne project anymore. I cant properly import complete project. Any help on this would be very helpful. Thanks
P.S: I want to maintain same project structure.
We don't support importing projects between IDE's as our project structure is IDE agnostic. The IDE won't recognize that and would fail. The right thing to do is create a new project with the same package name/main class name as your existing project then copy your src & res directories on top of the new project and copy codenameone_settings.properties on top of the new project file.

How can I use Angular 2 with NetBeans?

I have tried every tutorial I could find to try to make a HTML/JS project with Angular 2 working on NetBeans, but none have worked. Maybe is my npm that is bugged (search, for example, doesn't work).
The node_modules folder that is created with npm install is grey on NetBeans and have some errors in some files (I don't know if this is normal). Any .js I try to import from node_modules folder gives the error Failed to load resource: net::ERR_EMPTY_RESPONSE / Uncaught ReferenceError: System is not defined.
Does anyone have any idea what could I be doing wrong? Or does anyone knows any tutorial that have the code to download so I can compare with what I'm doing and see what is the correct? Every tutorial I have found doesn't have any code to download, just some pieces of codes in the page for explanation.
Sory if this isn't a good question, but I have been trying to make this work since yesterday without success and I'm completely out of idea.
First I recommend to upgrade to the last version of NodeJS and NPM, to minimize the errors in your node_modules folder
Install the Everlaw's Typescript plugin from https://github.com/Everlaw/nbts/releases . If you are using Netbeans 8.1 I think you can install it directly from the Plugins installer. I'm using NetBeans 8.2 and there is no problems installing the plugin manually.
Then on NetBeans go to Tools -> Options -> HTML/JS -> Node.js and write the right Node and NPM Paths and Sources, I would recommend check-on the three check-boxes in that panel.
For a quick start try the QuickStart demo from the angular.io page, it is not necessary make any change in the package.json.
The first time I tried to debug an Angular 2 application I put the index.html file directly in the project folder in order to do not make any changes in the index.html script sources nor change the project files structure but you need to change some properties of the project:
In the project window right click the project and select properties.
In sources change the Site Root Folder using the Browse button and select the project folder (You can ignore the warning that appears).
In Run select Run As: Web Application.
I recommend select Browser: Chrome with NetBeans Connector
Using the Browse button go to the project folder and select index.html as your Start File.
Select Web Server: Embedded Lightweight.
And finally in Web Root write /Your_Project_Folder
run npm install from NetBeans
Click the run button and your web application must open in chrome, if you edit your html or typescript files and save them you could see the changes in the browser in real time without re-debuggind your application and can use the Browser DOM window to explore your elements created from Angular 2.
You still see some errors in your files because NetBeans is not fully compatible with the HTML Angularized syntax. But it runs flawlessly.
You can also run the start script directly from Netbeans to run your project using lite-Server.
Screenshot NetBeans - Angular 2
I would recommend you to install the angular cli: npm install -g angular-cli#webpack
Fore more infos regarding this tool, take a look here: https://cli.angular.io/
Then create a new Angular2 app with ng new <app-name>
This will create a complete and working Angular2 application in the current folder.
cd <app-name> and start the app with ng serve.
Check your new created app in your browser on localhost:4200.
If this works, you can try to get started with your NetBeans! :)

how to configure selenium(webdriver)framework under eclipse

i have readymade framework for selenium(webdriver)(datadrievnfreamework). Please tell me how to configure that framework under eclipse . please help me out
Put some efforts to search in Google.
Kindly refer the eclipse guide for setting the environment. For some basic setup, refer:
http://selftechy.com/2011/03/18/selenium-setting-up-selenium-eclipse
For parameterization, refer:
http://diveintotesting.com/2013/02/23/parameterizing-selenium-webdriver-tests-using-testng-a-data-driven-approach/
For further coding using webdriver, refer:
https://code.google.com/p/selenium/wiki/GettingStarted
Follow below steps to configure selenium webdriver with eclipse
Download latest selenium jar zip files for JAVA form
http://www.seleniumhq.org/download/
(http://selenium-release.storage.googleapis.com/3.4/selenium-java-3.4.0.zip)
Extract zip file
Open Eclipse > Add New java Project by right click on left side
package explorer
Right Click on package explorer > NEW > Java Project
Right click on project > Select properties > Select Java Build Path
Select Libraries tab > Click on Add External JARs
Import all jar by selecting form extracted selenium jar folder & click on OK
Note - Every Time you need to follow same process , when you create new Selenium Automation project

How to install CakePHP plugin for PHP IDE Netbeans 7.2

I have the PHP IDE version of NetBeans 7.2 and have installed the plugin successfully (it is shown as enabled in the plugins list and appears in the project properties). However, nowhere do I see a place to select the framework as shown in the download page (http://plugins.netbeans.org/plugin/44579). When creating a new IDE there is no step 4, just 1,2, and 3...so obviously something is missing. Is there a dependent plugin I need or maybe I need the full, huge version of NetBeans?
I am using Windows 7, PHP 5.3, CakePHP 2.1.2
Thanks
The plugin was working correctly, however it requires that there only be 1 app in the project folder in the same directory as the CakePHP lib folder. The NetBeans project folder is not the 'app' folder that contains the Controllers and Views folders, instead it must be the folder that contains the app and lib folders.
Just go to NetBeans' main menu Tools > Plugins > Available Plugins. Choose the plugin you want and install it.

Resources