Friday, October 2, 2009

Re: Using a page outside of CakePHP

On Fri, Oct 2, 2009 at 11:09 PM, Gonzalo Servat <gservat@gmail.com> wrote:
>
> On Sat, Oct 3, 2009 at 1:01 PM, Josh K <joshkraemer@gmail.com> wrote:
>>
>> Is it possible to use a page outside of a CakePHP application? All but
>> two pages of my Cake app require authentication. I have two public
>> forms that submit data to the application.
>
> You could stick the pages in your /app/webroot/. Any files in there
> are not processed by CakePHP.

Also, you could create views for those forms and tell Auth to allow them:

the controller:

function beforeFilter()
{
parent::beforeFilter();
$this->Auth->allow(array('the_action', '...');
}

You might want to do that if you'd like those form pages to use the
existing layout file.

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