Hi All,

I'm still getting my bearings with Cake and need advice on the best
strategy for building a web app that will be accessed both as a
standard website and as a Facebook application.

Much of the Model and Controller logic will be the same in both
instances. My primary issue relates to views. When I began this
project, I was originally using 1.1 and found a way to create Facbook
views using web services -- e.g. xyz.com/fb/post/view/23 would be the
facebook version of xyz.com/post/view/23. However, I've since moved up
to 1.2 (for a number of reasons) and now the solution isn't so clear.

I'm considering 2 ways of doing this:

1) Use Router::parseExtensions() to look for a .fb or .fbml extension
and act accordingly. However, since these aren't "standard"
extensions, I'm having trouble figuring out how to make a custom
Helper and get Cake to pull the views from an FB or FBML
subdirectory.

2) Alternatively, I could create a dedicated Facebook wrapper
controller that would call the other controllers via requestAction()
then render the appropriate Facebook page.

I'm thinking the first option would be better, if I can get it
working. Any ideas? Or is there a third and better option out there?

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

Reply via email to