<dave@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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment