Upgraded from 4 to 5.3.1, missing controller error starting app with netbeans

I’ve upgraded my test system (wildows 11, xampp) to 5.3.1 from 4.4.17. If I start the app from firefox directly (localhost/) I see the homepage with a couple of “deprecated” messages.
However if I start the app with netbeans (debug project or run project) I get a “Missing controller” error for “index.phpController”.

No changes the the netneans project settings, I can go back to the old 4.4.17 project & it works fine.

I feel I must be missing something but I know not what.

Has anyone seen this or can throw any light on it?

tia

Peter

Fixed it. In the Run Configuration I blanked out “Index File” which in the Version 4 config had “index.php” which was selected from the “webroot” directory.
Now it works.

Netbeans is primarily a Java IDE, so how you “start” a CakePHP project with Netbeans is beyond my knowledge.

I’d recommend you take a look at Installation Guide | CakePHP and learn about how webservers work and what a “docroot” is.

Unless you use bin/cake server (or Netbeans calls that via your project settings), then its the PHP Built In Webserver.

Thanks for your response.

I did post yesterday to say I’d managed to get it working. I would have marked it as resolved but for some reason I couldn’t edit the original post, only my additional comment where I said I’d fixed it.

Re your comment about Netbeans, I’ve been using it as a debugger for a few years and it works well on a local web application, as one might expect as it comes from “Friends of Apache”.

I’m sorry if my use of the word “start” offends you, I consider the web app has “started” when the home page appears, which I tried to indicate in my original post. I came to web development late in life, I’m afraid I predate the internet. Now at the grand old age of 80 perhaps my vocabulary differs somewhat from yours :slight_smile:

All good, you are not offending anyone here :smiley:

I just wanted to clear things up so you understand, that PHP is not a “compiled” language like Java is.

If you have any problems feel free to just post it in here or go to our slack or discord support channel.