If you really need to:

loadHelper('Text');
$Text =& new TextHelper();

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de AzGhanv/.
Enviado el: Martes, 01 de Mayo de 2007 10:48 p.m.
Para: Cake PHP
Asunto: Using helper in Controller's action

I need to know how can we use helper such as $Text in controller's
action. I want to use $Text->truncate() ...... in controller's action.
I know component will do the work, but is there any way i can use
helper in it or i need to duplicate  code of text helper as component.


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