On Wed, August 18, 2010 6:40 am, linchuanyu wrote:
> I'm totally new to cakephp
> I can get the index.php of the cakephp welcome and no error or
> warning. So I suspect all set up is ok.
>
> model: Item.php
> <?php
> create Item extends AppModel{
> var $name = 'Item';
> }
> ?>
>
> controller: Items_Controller.php
> <?php
> class ItemsController extends AppController{
> var $name = 'Items';
> var $scaffold;
> }
> ?>
>
>
>
>
> and it always reports missing controller error:
> Missing Controller
> Error: ItemsController could not be found.
>
> Error: Create the class ItemsController below in file: app\controllers
> \items_controller.php
>
> <?php
> class ItemsController extends AppController {
>
> var $name = 'Items';
> }
> ?>
> Notice: If you want to customize this error message, create app\views
> \errors\missing_controller.ctp
>
>
>
>
> it asks me to create the file, but I do have this file under app
> \controllers
> pls help~~~ desperate~~~
your filename should be lower case. ie items_controller.php
--
Mike Karthauser
Managing Director - Brightstorm Ltd
Email: [email protected]
Web: http://www.brightstorm.co.uk
Tel: 07939 252144 (mobile)
Fax: 0870 1320560
Address: 1 Brewery Court, North Street, Bristol, BS3 1JS
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 [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