On Wed, Jun 18, 2008 at 7:50 PM, Turnquist, Jonah <[EMAIL PROTECTED]> wrote:
>
> But that would include it into all the actions, not just the 'index'
> action which I need.  How do I include it into in index action alone?
> I always worry about speed.  Also, can I include it from the view?
> that would be best, as it is only used in the view.  How do i do this?

If you seriously think that having the Time helper included when your
controller is loaded and being available for every action will reduce
the speed of the application in any appreciable way, I doubt your
ability to determine the choke points of an application.

No, you can't include it from the view either.

Did you try this in your index controller (assuming you are using 1.2):

App::import('Helper', 'Time');
$timeHelper = new TimeHelper;

Hope that helps, and beware of premature optimization.

-- 
Chris Hartjes
Internet Loudmouth
Motto for 2008: "Moving from herding elephants to handling snakes..."
@TheKeyBoard: http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
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