Error: ItemsController could not be found.
I have the recent version of cake installed on my windows vista
machine. To make things easier, I am using the WAMP application.
I was able to get the green bars indicating that everything was
working ok and the database set up went well too.
My directory structure is D:/wamp/www/cakephp and local host is
http://localhost/cakephp/
Well, now I am stuck as I tried to work through a tutorial.
In my folder D:/wamp/www/cakephp/app/models, I created a file
"item.php"
<?php
class Item extends AppModel
{
var $name = 'Item';
}
?>
and in my folder D:/wamp/www/cakephp/app/contollers, I created a file
"items_controller.php"
<?php
class ItemsController extends AppController {
var $name = 'Items';
var $scaffold;
}
?>
When I run http://localhost/cakephp/items, I get
Error: ItemsController could not be found.
Error: Create the class ItemsController below in file: app\controllers
\items_controller.php
My allowOveride is set to ALL and the load rewrite_module is un
commented.
I have a feeling my problem lies in the .htaccess docs and I tried to
read the installation manual but there is a section that is not clear
to me. Please see number 3 http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess
Am I supposed to ad this code snippets to the httpd.conf doc ?
Thanks
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 cake-php@googlegroups.com
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?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home