Monday, June 27, 2011

Re: Display posts on the home page AND posts visible to users only

Thanks. I start to understand now. However, I tried the belongsTo but is just break my posts listing:

class Post extends AppModel {
        var $name = 'Post';
var $belongsTo = 'User';
}


Maybe, I don't understand what belongsTo is supposed to do.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: