hmmm....make new method in posts section called idk users_posts($userid = null)
and then get posts from user id -- Tilen Majerle http://majerle.eu 2010/10/18 cakebaker <[email protected]> > I am trying to learn and work on cakephp FW. > I have a DB with Posts blog. > I have implemented the ACL. > I have Admin and User groups. > When an Admin (some one belongs 2 admin grp) log in he needs to be > redirected to a page where he can see all posts(belongs to all people) > This is working > I have implemented this with the following command in > users_controller.php: > function login() { > if($this->Auth->user('role')=='admin') > { > $this->redirect(array('controller'=>'posts','action' => 'index')); > } > BUT When a user (some 1 belongs to user grp - NOT ADMIN) log in he > needs to be redirected to see ( or redirect to posts page where he can > see only his posts) ONLY his posts not others.. > How can I implement this>??? > > Thanks > > 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > 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 [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
