Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorsuthern
    • CommentTimeJan 3rd 2008
     

    I looked around a bit to find out how, but the example in AkActiveRecord does not cover that.

    Perhaps an updated example like the below should be used in it's place? $this->users = $this->User->find('all', array( 'conditions' => array('first_name = ? AND last_name = ?',$this->params['first_name'],$this->params['last_name']) ));

    • CommentAuthorKaste
    • CommentTimeJan 3rd 2008
     

    submit DOC-patches in the TRAC if you like.

    somewhere around line 100 in AkActiveRecord.php, we actually have

    findFirst("user_name = ? AND password = ?", $user_name, $password);
    
    • CommentAuthorsuthern
    • CommentTimeJan 3rd 2008
     

    Yup, that was the example I was referring to. It wasn't real clear (at least to me) how to do it in a find function. Thanks though.

Add your comments
    Username Password
  • Format comments as