I see from a previous email you overrode your AppHelper to automatically prepend "/fb" onto all of your links which is causing the prob. Short of re-writing your links everywhere, you could modify this method so absolute files are not prepended with "/fb".
Cheers, Adam ----- Original Message ----- From: "Greg Baker" <[email protected]> To: "CakePHP" <[email protected]> Sent: Thursday, June 18, 2009 10:51 AM Subject: Webroot and prefix in Router::connect() > > I am working on my facebook app (you may have seen other messages here > by me about this) and I have hit another small problem. > > Having set up my routing so that I may enter my app either via > facebook or via a webpage I find that I cannot access files in the > folders in my webroot in facebook. > > For example, some of my routes: > Router::connect('/fb', array('controller'=>'pages', > 'action'=>'display', 'facebook'=>true, 'canvas')); > Router::connect('/fb/help', array('controller'=>'pages', > 'action'=>'display', 'facebook'=>true, 'help')); > Router::connect('/fb/:controller/:action/*', array > ('facebook'=>true)); > > Router::connect('/', array('controller'=>'pages', > 'action'=>'display', 'canvas')); > Router::connect('/help', array('controller'=>'pages', > 'action'=>'display', 'help')); > > Now facebook hits my app using /fb/whatever. This works so far for > everything except for my .swf files which reside in my webroot/flash > directory./ > > If I go to /flash/flash.swf I get my file > If I go to /fb/flash/flash.swf it looks for a FlashController. > > I am so close to getting this working just as I need it. I think this > will be my last snag. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
