On Sun, 2008-04-13 at 15:35 +0100, Richard Jones wrote:
> Jon Schutz wrote:
>
> > Following the example in the blog post, the solution is to set -Stats
> > and change your Root::end() method to something like:
> >
> > @report = $stats->report;
> > $c->stash->{'action_stats'} = [EMAIL PROTECTED];
> >
> > and then adjust your template as now you're getting an array of arrays
> > rather than an array of hashrefs.
> >
>
> Thanks, it's sort of working now, but I still need to run the server in
> debug mode even with the -Stats flag, either by setting -Debug in my
> main app.pm, or by starting the server with the -d flag, otherwise
> $c->stats->report is undefined. Nearly there?
Did you set the -Stats flag to a non-zero value? i.e.
use Catalyst qw/-Stats=1/
--
Jon Schutz My tech notes http://notes.jschutz.net
Chief Technology Officer http://www.youramigo.com
YourAmigo
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/