is this for view or controller if its for view i get error i changed to my model but this is the error
Fatal error: Call to a member function User() on a non-object in On Oct 9, 6:02 am, FrederickD <[email protected]> wrote: > There is an interesting article about row-level access here that may > help too: > > http://teknoid.wordpress.com/2009/04/22/simplistic-example-of-row-lev... > > It may generate some other ideas for you too. > > On Oct 8, 5:59 pm, Miles J <[email protected]> wrote: > > > > > Check that the logged in user matches the owner of the post. > > > if ($post['Comment']['user_id'] == $this->Auth->user('id')) { > > $this->Comment->delete(); > > > } > > > On Oct 8, 2:33 pm, Simon <[email protected]> wrote: > > > > is there any way for the users delete their own comment's not the > > > others how can i do that ?- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
