Use Router::url() to convert an array of controller/action pairs to a
URL string.

As for the XML, you can use the XML utility library, not the XML
helper.

On Sep 7, 9:01 am, Ketan Shah <[email protected]> wrote:
> Using a cakephp helper in the controller isnt permitted in the
> controller and model and rightly so. As you said helpers are
> associated with views and thats where it should be used.
>
> On Sep 7, 3: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
-~----------~----~----~----~------~----~------~--~---

Reply via email to