Hi,

Must be extremely simple but I've searched all around the docs and I
just can't seem to find it, but how do I use component code in a view?

I've made a component to handle settings from a DB, so in my views, I
want things like:

if ($component->settings['status'] == '1') {
     echo 'Hello!';
}

to work in my views.

Thanks.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to