On Wed, October 20, 2010 6:59 am, jerin k wrote:
>
> $timer->start('forloop');
>
> for ( $i=0; $i< {a big number}; $i++ )
> {
>     // do calculation or some rendering
> }
>
> echo $timer->stop('forloop');
>
>
>
> How this work?
> I got an error message while running..
> undefined variable $timer.
> Please help.

have you added timer into the array of helpers in your controller or
app_controller?


-- 
Mike Karthauser
Managing Director - Brightstorm Ltd

Email: [email protected]
Web: http://www.brightstorm.co.uk
Tel:  07939 252144 (mobile)
Fax: 0870 1320560

Address: 1 Brewery Court, North Street, Bristol, BS3 1JS

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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