Saturday, October 22, 2011

Embedding CakePHP in existing page

Hi guys,
I've voluntiered on creating some db app, and I told those guys that
it will be very easy, since I wanted to use CakePHP. Sadly after some
time they told me they want it inside their already existing web,
which is ancient highly changed PHPNuke.
So what I want is to generate just content of one <div> inside already
existing page with CakePHP. I looked up the internets, but or I don't
how form proper search query or nothing is out there. I'm rather user
of the framework, not developer, so I don't know much about the
backend and how MVC frameworks are working inside (and this is my
first try with CakePHP, since I'm Rails guy).
What I did so far is disabling mod_rewrite for Cake, inside PHPNuke
module included cakes index.php and rendering views with empty layout.
This somehow works, but the thing is how to form urls. I got it
working by now with
{{{
http://localhost/modules.php/posts?op=modload&name=xxxxx&file=index&do=xxxxx
}}}
but with this all links to css and images on phpnuke site are broken.

Is there any way to use something like
{{{
http://localhost/modules.php?op=modload&name=xxxxx&file=index&do=xxxxx&CakePHP=/posts/bla/bla
}}}
or any other way that could do the job.

Thank you very much

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate