Wednesday, June 30, 2010

Re: Cannot get set variable as field from array resulting from find('first')

Thanks, that worked.. Could've sworn I tried it like this:
"$retrieveemail = $this->Retrieveemail->find('first'); " before but I
guess not, probably just been on the computer too long getting
familiar with cakephp :)


On Jun 30, 4:30 am, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> Apologies...I wasn't thinking straight. Try this:
>
> $retrieveemail = $this->Retrieveemail->find('first');
>
> $email_address = $retrieveemail['Retrieveemail']['emailid'] ;
> $email_password = $retrieveemail['Retrieveemail']['password'] ;
>
> $this->set('variable', $variable) is only available outside of the controller.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 30 Jun 2010, at 12:26, Rick Dane wrote:
>
> > I get this:
>
> > "app\controllers\hushmail\retrieveemails_controller.php (line 170)
>
> > retrieveemail
> > "
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: