I think the issue is that you automatically override scaffolding with
your own methods, so your index() is used instead of a scaffolded
version.
Do other actions/views work, i.e /categories/add ?


On Nov 17, 10:38 pm, introvert <[EMAIL PROTECTED]> wrote:
> 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