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 properties http://book.cakephp.org/2.0/en/controllers.html#components-helpers-and-uses -- Lep pozdrav, Tilen Majerle http://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 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 > -- 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
