Bug in edit user

2013-05-17 Thread Guilherme Magno
Hello people, I'm having a big problem on the editing a User, I use the following code: class UsersController extends AppController { public function beforeFilter() { parent::beforeFilter(); } ... public function edit($id = null) { $this->request->data['User']['i

how to tell if a post belongs to a User!?

2013-05-03 Thread Guilherme Magno
On PostsController Action Edit if( $this->Post->isOwnedBy( $POSTID, $USERID) ){ //code } doesnot work! *Error: *SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right synt