thanks guys..i will give it a shot
On 1 Jul., 18:41, Renato de Freitas Freire renat...@gmail.com wrote:
I dont know what version you are using...
but in 1.2, i would do like this:
$adressee = $this-User-find('first',array('conditions' =
array('User.email' =$user,'fields' =
hi everyone,
i am about to implement a forgot password feature. for that the user
has to enter his email adress and then receives his new password. in
this email i want to start
Hello username,
you forgot.bla bla
but i am having problems to actually get the username out of my
database. it
The results of the find is an array, so Cake is doing what it's told. You will
need to do something like:
$this-set('username', $addressee['User']['username']);
That's a guess - to check it, do this just after your find:
die(debug($addressee));
That will print the array returned by the find
I dont know what version you are using...
but in 1.2, i would do like this:
$adressee = $this-User-find('first',array('conditions' =
array('User.email' =$user,'fields' = array('username';
try it...
--
Renato de Freitas Freire
ren...@morfer.org
On Thu, Jul 1, 2010 at 12:46 PM, Jeremy