Quantcast

CakephpController could not be found

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

CakephpController could not be found

00Cake
Hi all,

I have decided to create my new website with CakePHP.

This experience is already stopped. when I open the page http://localhost/cakephp/

I have the following message:

Error:  CakephpController could not be found.
Error: Create the class CakephpController below in file: app
\controllers\cakephp_controller.php

<?php class CakephpController extends AppController { var $name =
'Cakephp';} ?>

Notice: If you want to customize this error message, create app\views
\errors\missing_controller.ctp

I have put the cakephp files in C:\xampp\htdocs\CakePHP

What does this message mean ? Where am I wrong ?

Thank you for your help...

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: CakephpController could not be found

Piotr Kilczuk
Hello,

> I have decided to create my new website with CakePHP.
>
> This experience is already stopped. when I open the page http://localhost/cakephp/
>
> I have put the cakephp files in C:\xampp\htdocs\CakePHP

Seems like you have put it in htdocs...
What's the exact (absolute) path to app/webroot?

Regards,
Piotr

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: CakephpController could not be found

00Cake
Hi Piotr,

Thank you for answering.

The aboslute path to app/webroot is:

C:\xampp\htdocs\Cakephp\app\webroot

...

On 5 déc, 18:36, Piotr Kilczuk <[hidden email]> wrote:

> Hello,
>
> > I have decided to create my new website with CakePHP.
>
> > This experience is already stopped. when I open the pagehttp://localhost/cakephp/
>
> > I have put the cakephp files in C:\xampp\htdocs\CakePHP
>
> Seems like you have put it in htdocs...
> What's the exact (absolute) path to app/webroot?
>
> Regards,
> Piotr

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: CakephpController could not be found

Kani-3
Maybe you forget 's' suffix

<?php class CakephpController extends AppController  //
CakephpsController
{
     var $name ='Cakephp';                           //  Cakephps
}
?>

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: CakephpController could not be found

kdubya
In reply to this post by 00Cake
The message you are getting is telling you that you have not setup any
kind of app under CakePHP. The URL you provided in your post (http://
localhost/cakephp/) is not a proper URL to access a CakePHP app. If
you follow the suggested installation (see http://book.cakephp.org/view/329/Getting-Cake)
you will have (indentation below indicates a subdirectory):
 <document_root>
    /app
    /cake
    /docs
    /vendors

In your case <document_root> is C:\xampp\htdocs.

The fact that you are getting the error message you cite means that
instead of putting CakePHP directly under you document_root you put it
in a subdirectory i.e.:
<document_root>
   /cakephp
      /app
      /cake
      /docs
      /vendors

Is possible to make CakePHP work with this structure but since you are
just starting out I STRONGLY recommend you follow the Blog Tutorial at
http://book.cakephp.org/view/219/Blog.

Follow it exactly until you begin to get a handle on things. Firstly,
this means moving everything you current have under <document_root>/
cakephp up one level so it matches the directory structure in the
tutorial.

I hope this helps,
Ken


On Dec 5, 10:17 am, 00Cake <[hidden email]> wrote:
> Hi all,
>
> I have decided to create my new website with CakePHP.
>
> This experience is already stopped. when I open the pagehttp://localhost/cakephp/
>
...snip...

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: CakephpController could not be found

00Cake
In reply to this post by Kani-3
What's the point of adding an "s" ? what is the suffix for ?

On 6 déc, 12:51, kani <[hidden email]> wrote:
> Maybe you forget 's' suffix
>
> <?php class CakephpController extends AppController  //
> CakephpsController
> {
>      var $name ='Cakephp';                           //  Cakephps}
>
> ?>

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: CakephpController could not be found

00Cake
In reply to this post by kdubya
Thank you Ken!!

Well yes, it was because I did not created a controller file.

It was not clear in the configuration part of CakePHP cookbook.

I am now experiencing the same problem with a model file...

I'll follow you advise and do the blog tutorial to understand exactly
how the controller, models and views work!!

Cheers
Oliver



On 6 déc, 17:23, kdubya <[hidden email]> wrote:

> The message you are getting is telling you that you have not setup any
> kind of app under CakePHP. The URL you provided in your post (http://
> localhost/cakephp/) is not a proper URL to access a CakePHP app. If
> you follow the suggested installation (seehttp://book.cakephp.org/view/329/Getting-Cake)
> you will have (indentation below indicates a subdirectory):
>  <document_root>
>     /app
>     /cake
>     /docs
>     /vendors
>
> In your case <document_root> is C:\xampp\htdocs.
>
> The fact that you are getting the error message you cite means that
> instead of putting CakePHP directly under you document_root you put it
> in a subdirectory i.e.:
> <document_root>
>    /cakephp
>       /app
>       /cake
>       /docs
>       /vendors
>
> Is possible to make CakePHP work with this structure but since you are
> just starting out I STRONGLY recommend you follow the Blog Tutorial athttp://book.cakephp.org/view/219/Blog.
>
> Follow it exactly until you begin to get a handle on things. Firstly,
> this means moving everything you current have under <document_root>/
> cakephp up one level so it matches the directory structure in the
> tutorial.
>
> I hope this helps,
> Ken
>
> On Dec 5, 10:17 am, 00Cake <[hidden email]> wrote:> Hi all,
>
> > I have decided to create my new website with CakePHP.
>
> > This experience is already stopped. when I open the pagehttp://localhost/cakephp/
>
> ...snip...

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Loading...