Subdomain and Shared Hosting
I'm running CakePHP project on a shared hosting. Im trying to add a PDA version of my site on pda.mysite.com subdomain. To do this I've created a separate installation of cakephp plus some controllers and models in pda folder of my webroot. Is it possible to do same thing but without making separate copy of cakephp?
Asked by Stas, on 17/7/10
1 Answer
You have two options that I can think of, either continue using your pda subdomain and use cakephp to check this with every request and use prefix routing to use pda_ prefixed actions in your controllers. You can see an explanation of doing this with an admin subdomain here, http://bakery.cakephp.org/articles/view/hosting-admin-urls-on-a-subdomain.
The other option is to use your standard www. address and use the request handler to detect the device type and use prefix routing as above or redirect to the pda subdomain, see docs for request handler here, http://book.cakephp.org/view/350/Obtaining-Request-Information.
Answered by iamDuncanon 18/7/10
Your Answer
You can use Creole Wiki Syntax to format your text.
Tagged with
Rating
1
Viewed
107 times
Last Activity
on 26/7/10