I like to have a little worker function that I would like to have
available in Cake wherever I need them.

Which of these options will my functions be availalbe in all places
like model, controller, and view?

Thanks

On Jun 19, 2:08 pm, "Tane Piper" <[EMAIL PROTECTED]>
wrote:
> If it is a set of classes, you can put them in your vendors directory,
> within your application.  You can then call them like this:
>
> vendor('my_class');
> $myClass = new MyClass;
>
> If it just a bunch of functions you have, you can create a component with 
> them:
>
> http://manual.cakephp.org/chapter/components
>
> Finally, you can also put them in you AppController class.
>
> On 6/19/07, chanh.ong <[EMAIL PROTECTED]> wrote:
>
>
>
> > If I have a set of commonly use functions want to make it available
> > like Cake global functions what is the most acceptable way to tag
> > along my global function and still ease of doing Cake upgrade without
> > needing to add my global function in each time.
>
> > I don't want to hack basics.php to add my functions.
>
> > Thanks
>
> --
> Tane Piperhttp://digitalspaghetti.tooum.net
>
> This email is: [ ] blogable [ x ] ask first [ ] private


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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