A free and open-source book on ZF3 for beginners

Run Configuration

To be able to run and debug a website, you first need to edit the site's properties. To do that, in NetBeans' Projects pane, right-click on the project's name, and from context menu select Properties item. The project's Properties dialog will appear (shown in figure B.1).

Figure B.1. Properties | Sources Figure B.1. Properties | Sources

In the left pane of the dialog that appears, click the Sources node. In the right pane, edit the Web Root field to point to your website's APP_DIR/public directory. You can do this by clicking the Browse button to the right of the field. Then, in the dialog, click on the public directory and then click Select Folder button (shown in figure B.2).

Figure B.2. Browse Folders Dialog Figure B.2. Browse Folders Dialog

Next, click the Run Configuration node in the left pane. The right pane should display the run settings for your site (figure B.3).

Figure B.3. Properties | Run Configuration Figure B.3. Properties | Run Configuration

In the right pane, you can see that the current configuration is "default". As an option, you can create several run configurations.

Edit the fields as follows:

Finally, click the OK button to close the Properties dialog.