I think you would save yourself a lot of trouble by creating an api
route: www.mydomain.com/api/...

On Tue, Dec 4, 2012 at 3:52 AM, Tobias Schlemmer
<tobias.schlem...@gmail.com> wrote:
> Hello everyone,
>
> I have my app up and running and it is accessible via www.mydomain.com
>
> In addition I would like to add a RESTful api which should be available from
> its own subdomain api.mydomain.com
>
> So I thought I create a "Plugin/Api" and have all the
> Controllers/Actions/Authorization/Layout separated from the main app there.
> But I can still use the Models.
>
> I can create a Virtual Host under Apache with the DocumentRoot
> /app/Plugin/Api/webroot/
>
> How does the index.php look like then?
>
> And is this a good idea in general? Or are there better ways?
>
> Thanks, Tobi
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> 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+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to