Re: Webroot and prefix in Router::connect()

2009-06-18 Thread Greg Baker

Hey Adam.  I actually trashed that idea when I noticed it was causing
me problems elsewhere.  You are right that everything seems to work
without prepending this /fb/ to my URLs...  except the webroot
stuff :)

On Jun 17, 11:57 pm, "Adam Royle"  wrote:
> 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" 
> To: "CakePHP" 
> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webroot and prefix in Router::connect()

2009-06-17 Thread Adam Royle

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" 
To: "CakePHP" 
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Webroot and prefix in Router::connect()

2009-06-17 Thread Greg Baker

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---