> Okay, sounds good. So where do I find this information on building my
> own helper? Please provide a link to some instructions if you can.

A helper is definitely what you want here. They are really easy:

http://manual.cakephp.org/chapter/helpers (Section 2, all the way at
the bottom)

Basically you create a file in the helpers directory called common.php
and then inside it define your class:

<?php
class CommonHelper extends Helper {
    function myFunc($data) {
        return $data;
    }
}
?>

Now in your view you can call your function like <?php echo $common-
>myFunc($data); ?>. Just make sure you include the helper inside your
controller or AppController.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to