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:

<?php
class BooksController extends AppController {

        var $name = 'Books';
        var $uses = array();
                function index()
               {}
}
?>

and the index.ctp:

<h2>packt book store</h2>

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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to