Create a static class and place it in libs or vendors.

On Aug 11, 2:09 pm, euromark <dereurom...@googlemail.com> wrote:
> usually in the model
> since controllers can easily access models
>
> but that depends on your situation
> maybe a lib, maybe a behavior, maybe some boostrap code
>
> without knowing more details, i go for model code
>
> On 11 Aug., 22:30, BurningFuses <cassi...@gmail.com> wrote:
>
>
>
>
>
>
>
> > In my app I have a bunch of time related routines that I want to be
> > able to call from my controllers and models. I could turn them into a
> > component so they could be accessible on all my controllers, but they
> > wouldn't be (in a trivial way or recommended way) be accessible from
> > my models. Where should I put them? Is there a recommended cake
> > guideline for such a thing?
> > Thank you,
> > Burningfuses

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to