How use sub-domain as prefix?

Hi All!

Can anyone help with this problem (CakePhp 2):

i have couple of sub-domain's like:

my.some.com

api.some.com

e.t.c.

All sub-domain's pointed in same place as some.com.

How can I use sub-domain name as preffix?

like i open api.some.com/test/action and called test controller with api_action() ?

Any ideas?

Thanks all.

Asked by AngryALF, on 20/2/12

1 Answer

http://book.cakephp.org/2.0/en/development/routing.html#custom-route-classes

This is where I would start.

Answered by JambaFunon 23/2/12

<< previous next >>

Your Answer

You can use Creole Wiki Syntax to format your text.

Rating

0

Viewed

344 times

Last Activity

on 23/2/12