i usually put them into components

as components can easily be added in helpers/views as well with
App::import()

otherwise around it usually aint that clean (html markup etc in the
helper?)
so better this way

a) you dont have bootstrap functions you only need once or twice
b) you dont have redundancy
c) your code stays clean structured


On 1 Dez., 20:20, drbuzasi <[email protected]> wrote:
> Good idea! Thanks!
> I wanted to use a helper but as i wrote 
> inhttp://groups.google.com/group/cake-php/browse_thread/thread/a65a11c3...
> controllers don't load helpers into class variables.
> I give it a try.
>
> On dec. 1, 18:48, Miles J <[email protected]> wrote:
>
> > If they are just stand alone functions that dont need to be in either
> > a component or a helper, just place the function in your bootstrap
> > file.
>
> > On Dec 1, 5:56 am, drbuzasi <[email protected]> wrote:
>
> > > Hi!
> > > I have some methods for several tasks that i need not only in
> > > controllers or in views but in both of them. There are helpers for
> > > views and components for controllers. Which of theese would be a
> > > better idea to share my logics. Or is there a third way to do this?
> > > Looking forward for any help from you
> > > Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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