NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
CakePHP


Joined: 15 Jan 2017
Posts: 7
Reply with quote
Hi,

I'm trying to run a CakePHP 2 application from PHPEd. But I'm stuck with the redirections in CakePHP. Can't figure out how to start the app.
No matter which index.php I'm trying to run, there's always errors like
Quote:
Index.phpController could not be found.

A cakephp app needs to be started like
http://localhost/myapp
not
http://localhost/myapp/index.php
(the latter address throws the same errors when entered in the browser's address field)

So I always end up with a CakePHP MissingControllerException.

The tutorial is not very helpful either, as it seems to refer to an old version of CakePHP.

So isn't it possible to work with CakePHP in PHPEd?
View user's profileFind all posts by DrNOPSend private message
[solved] CakePHP


Joined: 15 Jan 2017
Posts: 7
Reply with quote
found the solution Smile

Don't follow the tutorial which says:
Quote:
How to start debugging session with CakePHP application?
The answer is - by opening index.php and pressing Run in Debugger button.

..because this will lead to the said errors.

Instead, set a breakpoint somewhere and enter the correct URL in the embedded browser tab. Like
http:// localhost.com/myapp
and open it by pressing ENTER - voilá Smile
View user's profileFind all posts by DrNOPSend private message
CakePHP
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic