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