Re: echoing data after retrieving it via find. cake doesn't echo the actual value, but rather array

2010-07-02 Thread Tomfox Wiranata
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' =

echoing data after retrieving it via find. cake doesn't echo the actual value, but rather array

2010-07-01 Thread Tomfox Wiranata
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

Re: echoing data after retrieving it via find. cake doesn't echo the actual value, but rather array

2010-07-01 Thread Jeremy Burns | Class Outfit
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

Re: echoing data after retrieving it via find. cake doesn't echo the actual value, but rather array

2010-07-01 Thread Renato de Freitas Freire
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