which error u got when you do $functions = new FunctionsComponent(); ?
add me on skype (tjuln10) or Facebook (Tilen Majerle) that we can fast solve your problem :)
--
Lep pozdrav, Tilen Majerle
2012/2/23 heohni <heidi.anselstetter@consultingteam.de>
??
Now I am totally lost.....
On 23 Feb., 14:37, Tilen Majerle <tilen.maje...@gmail.com> wrote:
> yes, because components can be used ONLY in controllers, if you need this
> somewhere else, use Library :)
> --
> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> 2012/2/23 heohni <heidi.anselstet...@consultingteam.de>
>
>
>
>
>
>
>
> > Dear Tilen,
>
> > How can I make it then useable?
>
> > $Functions = new FunctionsComponent(); is not working...
>
> > On 23 Feb., 14:28, Tilen Majerle <tilen.maje...@gmail.com> wrote:
> > > first, App::uses has following: App::uses('NameOfAClass', 'Path'); so in
> > ur
> > > case it should be
> > > App::uses('FunctionsComponent', 'Controller/Component');, if you're using
> > > this component in plugin, use
> > > App::uses('FunctionsComponent', 'PluginName.Controller/Component');
>
> > > where do u want to use this component ? probably in controller, add
> > > component name to $components list in controller propertieshttp://
> > book.cakephp.org/2.0/en/controllers.html#components-helpers-an...
> > > --
> > > Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> > > 2012/2/23 heohni <heidi.anselstet...@consultingteam.de>
>
> > > > HI,
>
> > > > I want to use a component function within my model, now in V2.1. how
> > > > can I do that?
>
> > > > Is it right that I need t use this:
>
> > > > App::uses('Functions', 'Component');
>
> > > > But what else do I need to use $this->Functions->needfullthing()?
>
> > > > --
> > > > Our newest site for the community: CakePHP Video Tutorials
> > > >http://tv.cakephp.org
> > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > > > others with their CakePHP related questions.
>
> > > > To unsubscribe from this group, send email to
> > > > cake-php+unsubscribe@googlegroups.com For more options, visit this
> > group
> > > > athttp://groups.google.com/group/cake-php
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php
--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment