Sunday, October 4, 2009

Re: Using a page outside of CakePHP

I would actually like to include these cake form pages in my cms which
reads php code and resides outside of the cake document root. What
code would accomplish this?

I can't use rewrite because I need to embed my cakephp form pages in
my cms.

Here's a deprecated example:
http://debuggable.com/posts/using-cakephp-in-external-php-systems-cmss-weblogs-etc:480f4dd5-ed94-4186-acda-4443cbdd56cb

Thanks.

On Oct 3, 9:19 am, brian <bally.z...@gmail.com> wrote:
> On Sat, Oct 3, 2009 at 2:54 AM, Josh K <joshkrae...@gmail.com> wrote:
>
> > Thanks for the reply.  I would actually like to use the two pages
> >outsideof the Cake document root since I have Cake and its app files
> > on a subdirectory.  For example:
>
> > I would like to copy:
>
> > /home/public_html/cake/app/views/forms/form1
>
> > to
>
> > /home/public_html/form1.php
>
> > What type of php includes would I need to do this?
>
> I don't follow your reasoning but, anyway, you'd need to have add some
> conditions to your .htaccess file in public_html. Something like:
>
> RewriteCond %{REQUEST_URI} !^your_form
> RewriteCond %{REQUEST_URI} !^your_other_form
>
> But I don't have much experience using Cake in a subdirectory so
> someone else might know better.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: