Wednesday, January 25, 2012

Re: Cakephp fails on xampp - cakecontroller could not be found

Cake might be a bad name for a controller.

Your controller has no action method

Perhaps add:

public function index() {}

and put a index.ctp in View/Cake/
Also CakeController.php should be the filename (that casing)

- S

On 25 Jan 2012 23:18, "jkrug_98" <jkrug_98@yahoo.com> wrote:
Hi, I'm a newbee to PHP and xampp  but have years of embedded
programming experience.

My environment is:
Windows XP, xampp 1.7.7 , Mysql 5.5.16, php 5.3.8.....

cakephp is installed in:   c:xampp\htdocs\Cake
(Note:  Wordpress runs great in this environment!)

Browser url:  http://localhost/cake
Results in Error:  CakeController could not be found.

Added file:  c:\xam[[\xtdocs\Cake\app\Controller\cakecontroller.php

that contains:
<?php
class CakeController extends AppController {
var $cakecontroller = 'Cake';
}
?>

This was supposed to fix the problem.  However I got the next error:
Error:  The action index is not defined in controller Cakecontroller

I tried to modify the cakecontroller.php file but continue to get more
errors.  It seems as though I'm missing some fundamental problem.
Maybe a configuration issue?

Can anyone help me with this problem?

Thanks








--
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

--
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: