On Apr 20, 3:16 am, Iqbal Santyaswardan <isant...@gmail.com> wrote:
> Ok, thanks, Cricket, I'll try that.  (I wonder what "slug" is...)

A slug is a URL-friendly name for an article, person, etc. Good for
search engines. So, if you had a user, Tom Sawyer, you could, eg. view
their profile from:

/users/tom-sawyer

Or, an article:
/blog/my-blog-post-title

> So it is the User that hasone [teacher/student] and not the other way
> around?

It's just one way to do it. I suppose one could do it the other way,
yes.

> Are teacher/student models still extensions of the user model
> or not?

In this example, no. They're associated with User model. You could
also have the other models extend the User class. I did do that once
but ran into all sorts of problems. But that was very early in my
experience with Cake so I was probably doing something wrong. I really
can't say which way is best.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to