Thursday, February 23, 2012

Re: Error: Index.phpController could not be found

You don't need any files in controllers for the application to work correctly, the files needed out of the box are already stored in /cake/ (The core engine if you wish).

The homepage as I said (localhost/cakephp/) is linked to /cake/libs/controller/pages_controller.php and inside this controller is a function "display" which is displaying a page /cake/libs/views/pages/home.ctp

You can overwrite these files by creating a new pages_controller.php in /app/controllers/pages_controller.php and /views/pages/home.ctp etc.

That is how it works most of the time.

Definately an issue with your .htaccess / mod_rewrite, which web server are you using, or do you use an app like EasyPHP ?

On 23 February 2012 16:32, amg55nj <skumar99@gmail.com> wrote:
Thanks for the reply.  They all have .htaccess files and made those changes to no success.
I am reading through and trying what is suggested in this guide:


but not having any success.  My app\Controller directory has no files and has a folder named Component with an "empty" file in it. Should there be a file in it since the error is saying it is looking for index.phpController?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php



--
Kind Regards
 Stephen

 http://www.ninjacodermonkey.co.uk


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: