When I debug all the info is there a lot of data for that function but the 2 im look at for the if are both empty.
[Post] => Array ( ) [Favorite] => Array ( ) -----Original Message----- From: Gonzalo Servat [mailto:gser...@gmail.com] Sent: September-27-09 7:41 PM To: cake-php@googlegroups.com Subject: Re: Im dumb...help! On Mon, Sep 28, 2009 at 8:05 AM, Dave Maharaj :: WidePixels.com <d...@widepixels.com> wrote: > > When I test it out I know there is no data for either. > > So in the view: > <?php if (!empty($user['Post']) || !empty($user['Favorite']['id'])) ?> > <h1>Dummy title</h1> If info this should show up <?php endif ?> > > But sure enough in the view: > Dummy Title > If info this should show up What's the output of: var_dump($user) ? - GS --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---