Re: An problem about "controller without a model"

2008-09-12 Thread simonking

yes, I did.


On 9月12日, 上午1时33分, "Okto Silaban" <[EMAIL PROTECTED]> wrote:
> Have you named the controller books_controller.php?
>
> Okto.Silaban.Net
>
>
>

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



Re: An problem about "controller without a model"

2008-09-11 Thread Okto Silaban
Have you named the controller books_controller.php?

Okto.Silaban.Net

On Thu, Sep 11, 2008 at 9:30 PM, simonking <[EMAIL PROTECTED]> wrote:

>
> I'm a newbie in cakephp.
> Recently, I practiced an example from the book "CakePHP Application
> Development". I got a problem:
>
> It is an example about "controller without a model"
>
> the code below:
>
>  class BooksController extends AppController {
>
>var $name = 'Books';
>var $uses = array();
>function index()
>   {}
> }
> ?>
>
> and the index.ctp:
>
> packt book store
>
> but the result diplay:
>
> Missing Controller
> Error: BooksController could not be found.
>
> Error: Create the class BooksController below in file: app\controllers
> \books_controller.php
>
> the version of cakephp I used is cake_1.2.0.7296-rc2
>
> why?
>
> >
>

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



An problem about "controller without a model"

2008-09-11 Thread simonking

I'm a newbie in cakephp.
Recently, I practiced an example from the book "CakePHP Application
Development". I got a problem:

It is an example about "controller without a model"

the code below:



and the index.ctp:

packt book store

but the result diplay:

Missing Controller
Error: BooksController could not be found.

Error: Create the class BooksController below in file: app\controllers
\books_controller.php

the version of cakephp I used is cake_1.2.0.7296-rc2

why?

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