Hi all, getting on pretty well with a CMS in cake but having trouble
with find functions. For example: -
$result = $this->User->query("SELECT * FROM user WHERE username =
'{$username}'");
That will return an array with the expected result. However, this :-
$result = $this->User->findByUsername($username);
returns nothing at all. I am tearing my hair out here!! I can get on
with my work using the query function, but bypassing the built-in cake
functions seems to somewhat defeat the purpose of using the framework.
I suspect it is a configuration issue somewhere, anyone have any
suggestions?
This is for a simple login system like the one in the manual, but i
can't get it to work with the find functions.
Many thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---