ok, here's the FULL solution (ran into some other problems, hehe):

following is copy/paste'd from the Mint forum thread at
http://www.haveamint.com/forum/troubleshooting/629/birdfeeder_pepper_and_the_cakephp_framework#post_5640



Ok, this has been resolved, once and for all :) NOTE: I'm sure there
are better ways of achieving the same goal, but this worked, and I
don't feel like touching it anymore.

To get the Bird Feeder Pepper to work in CakePHP:

1) Follow all the directions in the ReadMe file.
2) Add the following lines BEFORE the define() and include() code you
added from the ReadMe file:

global $Mint;
global $Pepper;

3) Ensure that the path in the include() statement is correct. I had
to add cake/app/webroot/ to mine.
ANOTHER NOTE: Some of this path-related hassle may, in fact, have been
caused by either Cake's or my own mod_rewrite rules, as is often the
case with Mint, rather than Cake itself. While it won't hurt anything,
I would recommend just trying steps 1 and 2 and seeing if that works.
If not, then start fixing the paths.
4) In the birdfeeder/watcher.php file, adjust the definition of the
MINT_ROOT constant to point directly to your Mint installation. Mine
now reads:

define('MINT_ROOT', $_SERVER['DOCUMENT_ROOT'].'/cake/app/webroot/js/
mint/');

That's it. After that, everything was perfect. Hope this helps
someone... Hope Julian (original poster) either fixed it or comes back
to see this.


On Sep 18, 12:12 pm, Brad Dillon <[EMAIL PROTECTED]> wrote:
> Chris, thank you! I went to your blog and searched 'Mint' and found
> the answer...
>
> For future reference, the Bird Feeder plugin for Mint requires that
> you add two lines of code to your feed template. BEFORE those two
> lines of code, you have to instantiate the global 'Mint'. The article
> I found at Chris' blog is 
> athttp://www.littlehart.net/atthekeyboard/2007/01/30/wordpress-21-and-mint,
> and I'm going to add this info to the Mint forum thread as well.
>
> Thanks again Chris and everyone else.
>
> On Sep 18, 11:55 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > On 9/18/07, Brad Dillon <[EMAIL PROTECTED]> wrote:
>
> > > Thanks for the tip McFadly, I'll be sure to check it out right away.
>
> > > Just wanted to point out that Mint itself works great with cake. No
> > > problems getting it set up at all. The only issue I've been having are
> > > with the feed tracking plugin Bird Feeder. Don't hesitate to use Mint
> > > for stat tracking, though. It's a fantastic piece of software :)
>
> > I seem to remember having the same problem getting Bird Feeder to work
> > on my own WordPress blog...I will dig through my old notes and see
> > what I can find.  I seem to remember doing a blog post about it, but
> > the situation may have improved since then.
>
> > --
> > Chris Hartjes
> > Senior Developer
> > Cake Development Corporation
>
> > My motto for 2007:  "Just build it, damnit!"
>
> > @TheBallpark -http://www.littlehart.net/attheballpark
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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