I'm writing a facebook app and am having problems with my routing.
First off I changed App.base to point to my facebook canvas path:
Configure::write('App.base', '/my_app');
I did this so I could use $html->url() to construct my URLs in my
views. It works great except for one problem. I have a route defined
as follows:
Router::connect('/', array('controller'=>'pages',
'action'=>'display', 'canvas'));
Before I changed the App.base it would display the canvas page fine.
With App.base changed to '/my_app' I get an error when visiting '/
my_app/':
Error: MyAppController could not be found.
If I go to '/my_app/index.php' I get the canvas page fine.
Can anyone understand what is going on here? Thanks for any advice.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---