Hello,

I have created a simple model and controller:

category.php:

<?php
class Category extends AppModel {
        var $name = 'Category ';

        var $useTable = 'categories';
}
?>

categories_controller.php:

<?php
class CategoriesController extends AppController {
        var $name = 'Categories';
        var $uses = array ( 'Category' );
        var $scaffold;

        function index() {
                $this->set('categories', $this->Category->find('all'));
        }
}
?>

And when I add the variable $scaffold, there wont be any difference
when I request website/categories in the view.
I havent made any view files - I only get errors that I should make
them.

What am I doing wrong and what should I do to make scaffold work
properly?

Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to