Hi AD7six,

I have the following setup:

Table
article_categories

Controller
Class name: ArticleCategoriesController
File name: article_categories_controller.php
var $name: ArticleCategories

Model
Class: ArticleCategory
File name: article_category.php
var $name: ArticleCategory

Views
Directory name: article_categories
Files: admin_add.ctp, admin_index.ctp

They seem to follow the CakePHP nameing convention, but I could have
missed something.

Many Thanks,
Mark


On Feb 24, 12:53 pm, AD7six <[email protected]> wrote:
> On Feb 24, 1:11 pm, Mark <[email protected]> wrote:
>
>
>
> > Hi Adam,
>
> > I'm using the following data structure for the table:
>
> > id  int(11) unsigned NULL auto_increment
> > name varchar(50) NULL
> > parent_id       int(11) Default NULL
> > lft int(11) unsigned Default NULL
> > rght    int(11) unsigned Default NULL
>
> > Thanks for the tutorial link. I've had a read it and can't find any
> > real difference.
> > The only one I spotted was the use of int(11) instaed of int(10) for
> > lft, rght and parent_id.
>
> > Any ideas?
>
> your model file doesn't have the right name, and so everything in your
> model file isn't read by cake. Check the conventions page i the book.
>
> AD
--~--~---------~--~----~------------~-------~--~----~
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