Great to hear that you've solved it. Have a nice day and a happy new year! On 31 Dec 2014 17:50, "Anja Liebermann" <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Marlin, > > > it looks like the trouble was at two points. I cahnged it in the > controller to > > public $components = array( > 'Twitter.Twitter' > ); > > and then very important adde din the bootrap.php > > CakePlugin::loadAll(); > > Et voila, the Plugin is found. > > Thank you for your help. > > > Anja > > > Am 31.12.2014 um 09:05 schrieb Marlin Cremers: > > Hello there! > > > > You will have to add the component prefixed by the plugin name. So > > Twitter.Twitter. The same applies to Helpers, Models, etc. > > > > On Tuesday, 30 December 2014 21:21:47 UTC+1, acl68 wrote: > >> > > Hello, > > > > I migrate a project from 1.3 to 2.n. I replace the old Twitter Component > > with the Twitter plugin > > https://github.com/mishudark/CakePHP-2.x-Twitter-Plugin > > > > Usage: Upload to app/Plugin/Twitter > > > > > > So I unzip the Plugin place it inside .../app/Plugin and rename it to > > "Twitter". It pop up under plugins in my testsuite. But when I try to > > add a new item in my controller I get this error > > > > Missing Component > > > > Error: TwitterComponent could not be found. > > > > Error: Create the class TwitterComponent below in file: > > app/Controller/Component/TwitterComponent.php > > > > In this controller I added the Component like this: > > class AddressesController extends AppController > > { > > public $components = array( > > 'Paginator', > > 'JsonUrl', > > 'MathCaptcha', > > 'Twitter' > > ); > > ...... > > > > > > So should the component go under > > app/Controller/Component/TwitterComponent.php > > or > > app/Plugin/Twitter/Controller/Component/TwitterComponent.php > > > > Or do I add it differently in my controller? > > > > Calamity Jane > >> > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > > iEYEARECAAYFAlSkKRgACgkQbOdiIJzHNKGQvgCeJKO57X+W257Y31BTELhKEwV0 > w3kAn1LQF4Mq1yDpfa23Yu/IW2muKz/c > =0ryY > -----END PGP SIGNATURE----- > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to a topic in the > Google Groups "CakePHP" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/cake-php/YMxBc-3SOeg/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
