Dear Tilen, How can I make it then useable?
$Functions = new FunctionsComponent(); is not working... On 23 Feb., 14:28, Tilen Majerle <[email protected]> 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 <[email protected]> > > > > > > > > > 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.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > [email protected] 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
