Anything you put in your ~/app/bootstrap.php will be available
everywhere.
On Jun 5, 3:17 pm, moment11 <[EMAIL PROTECTED]> wrote:
> I want a simple function that I can use in all my views:
>
> function export_var($the_var) {
> if (isset($the_var)) {
> return $the_var;
> } else {
> return "";
> }
> }
>
> I'm not really sure where to put this in the cakephp code such that I
> can use it throughout all 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
-~----------~----~----~----~------~----~------~--~---