Why not
if (isset($var)) {
// Do something with $var
}
On 6 Maj, 06:39, Stacey <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm having a problem trying to access 'hasField' in a view. I have a
> calculated field that is only created if there is a value to put in
> the field. So, I need to first check if the field is available before
> I do something with it in my view. Is this possible?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---