need to be specific about the path for FireCake to load.
Both of these worked for my setup where DebugKit is installed in the
main "Plugin" folder
App::import('Lib', 'DebugKit.FireCake');
App::import('Lib', 'DebugKit.FireCake', array('file' =>
'Plugin'.DS.'DebugKit'.DS.'Lib'.DS.'FireCake.php'));
This one did NOT work with my setup: App::import('Vendor',
'DebugKit.FireCake');
This was a clean install of (FireFox, FireBug and FirePHP) and I had
forgot to enable FirePHP from the tools menu. Spent a bit of time on
that because it looks like its loaded and working when you look at
FireBug. But without the FirePHP->enabled checked the UserAgent sent
to the server does not contain the FirePHP version. When FireCake.php
does a check to see if its enabled via the UserAgent version, its
missing, and exits early.
On Oct 30, 5:01 am, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> Worked perfectly thanks (although I had also commented the component out of my AppController, which stumped me for a few moments):
>
> public $components = array('DebugKit.Toolbar');
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 30 Oct 2011, at 06:04, LunarDraco wrote:
>
>
>
>
>
>
>
> > I was able to get DebugKit working by
> > cd to Plugins
> > git clonehttps://github.com/cakephp/debug_kit.gitDebugKit
> > After I had a copy I cd into the DebugKit folder then I switched to
> > the 2.0 via
> > git checkout 2.0
> > Updating bootstrap.php to load the plugin (new CakePHP 2.0
> > requirement):
> > CakePlugin::load('DebugKit');
>
> > Modified the View/Layouts/default.ctp by commenting out the following
> > line
> > <?php //echo $this->element('sql_dump'); ?>
>
> > I've got DebugKit working but I'm struggling with DebugKit.FireCake
> > I'm sure it something to do with the changes to App::Import vs
> > App::uses and the App::build paths.
>
> > Morgan
>
> > On Oct 29, 11:16 pm, Jeremy Burns <jeremybu...@classoutfit.com> wrote:
> >> Anyone got any tips for getting DebugKit working in 2.0? I've run the
> >> upgrade script over it and am loading it in bootstrap.
>
> > --
> > Our newest site for the community: CakePHP Video Tutorialshttp://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
No comments:
Post a Comment