Paolo,

If you use cake 1.2, you can set Router::parseExtension('xml') in
core.php.
If you call your action from external application, using "http://
myhost. com/app/controller/action.xml", cake will look for a ctp in
this form view/xml/action.ctp (note the subfolder "xml"). In this view
you can just return xml. You also have an xml helper in the core that
can help you to "format" your xml.

hth

On Dec 13, 5:47 pm, Martin Wood-Mitrovski
<[EMAIL PROTECTED]> wrote:
> What I have done when faced with a similar situation (existing php site /
> scripts needs stuff from my cake app) is to generate the required page 
> fragments
> in cake and pull them in using file_get_contents($url_to_piece_of_cake)
>
> works fine.
>
> You'll probably want to create and use a layout just for those pieces, mine is
> just this :
>
> <?php echo $content_for_layout; ?>
>
> then make sure you render that layout in the controller :
>
> $this->render("viewName","layoutName");
>
> then just put whatever you need into the view.
>
> Paolo wrote:
> > Hi all!
>
> > I created a website for a real estate agency using cake. I used cake
> > to create the management part of the website, now I'm creating the
> > remaining part, that one that will be available to the user. I
> > wouldn't like to use cake for this, but would it be possible to query
> > some page or something in order to get the answer from cake pages? For
> > example, if I want to get all the items in a table, how can I do it?
> > Or if I would like to search for something?
--~--~---------~--~----~------------~-------~--~----~
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