hi there, i do the same way as your tutorial explain, but i add an association into my model User, :
-------------------------------
class User extends AppModel {
var $belongsTo = array(
'Customer' => array(
'className' => 'Customer',
'foreignKey' => 'customer_id',
'conditions' => '',
'fields' => '',
'order' => ''
)
);
-------------------------------
then i follow your tutorial, but it's have an error when i submit :
Query: SELECT `User`.`u_id`, `User`.`username` FROM `users` AS `User` LEFT JOIN `customers` AS `Customer` ON (`User`.`customer_id` = `Customer`.`c_id`) WHERE `username` = 'newuser' AND `password` = '098f6bcd4621d373cade4e832627b4f6' LIMIT 1.
what's the problem? Can you explain me please !
