I wouldn't suggest you use a helper in your controller. but you can do
it by importing your desired library.
in your controller:
App::import('Helper', 'Html');
On Sep 7, 5:14 pm, cogitovn <[email protected]> wrote:
> Hi all,
> I'm a newbie in cakePHP.
> As I know, helper is a part of View. So, how to use a helper in Controller
> or Model?
> For example, I want to Html helper, Xml Helper in a controller, in order to
> call some methods such as, html->url(), xml->serialize()....
> Please help me on detail.
> Thank you!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---