Try this:
$account = substr(FULL_BASE_URL, 0, strpos('.', FULL_BASE_URL));

-- Felix
--------------------------
http://www.thinkingphp.org
http://www.fg-webdesign.de


[EMAIL PROTECTED] wrote:
> Applications like Basecamp and Backpack use the account name in the
> url - specifically a subdomain like account.backpackit.com or
> account.projectpath.com.  Does Cake let you capture this subdomain in
> your app?  I'm sure it involves some httpd.conf settings, but is it
> ultimately available in Cake to use?
>
> Another option would be to use it before the controller name, like how
> plugins or admin routes work, like 
> www.whatever.com/account/controller/action/params.
> Is there any way to have a parameter before the controller name?
> Maybe using the new routing capabiliites in 1.2 as described in
> http://cake.insertdesignhere.com/posts/view/10?
>
> I know it could just be used as a normal parameter after controller/
> action, but for the app I'm looking at that parameter is needed in
> every url and looks nicer before the controller.
>
>
> >
>
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to