Re: Account Parameter
I just posted a question like this and got some info: http://groups.google.com/group/cake-php/browse_frm/thread/aa65e794df4e064a/8d9e875d51f97d2e?lnk=st&q=&rnum=6#8d9e875d51f97d2e On Mar 11, 1:52 pm, "[EMAIL PROTECTED]" <[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, > likewww.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 > inhttp://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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Account Parameter
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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Account Parameter
Yeah, you can capture the subdomain, someone else asked the same question recently here: http://groups.google.com/group/cake-php/browse_thread/thread/aa65e794df4e064a?hl=en Search the group before asking questions! On Mar 11, 12:52 pm, "[EMAIL PROTECTED]" <[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, > likewww.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 > inhttp://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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Account Parameter
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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---