Thanks Eric,
Will give it a try and see how it goes.

Cheers,
Cam

On Jan 24, 10:07 pm, "Eric C Blount" <[EMAIL PROTECTED]> wrote:
> How about putting the directory as
> /app/views/layouts/clients/test/mylayout.thtml and using $this->layout
> = 'clients/test/mylayout';
>
> I'm not exactly sure about syntax on this, but it's something to that effect.
>
> Also, I've read something on this group before about pulling layout
> data from the database, which may be a great solution for you (easy
> updating, let the clients update the layout themselves, etc.)
>
> Eric
>
> On 1/24/07, cammo <[EMAIL PROTECTED]> wrote:
>
>
>
> > One more question,
> > I am able to now route to the clientController and I have a function in
> > there that checks if a $this->params['clientdomain'] exists, which is
> > the subdomain extrapolated from the url. I need a way to set the
> > default.thtml file to the one that belongs to the particular subdomain,
> > i.e if I type in test.domain.com.au I need it to render the
> > default.thtml page from the clients/test/views/layout directory and not
> > the generic /app/views/layout/ directory.
>
> > Any thoughts would be greatly appreciated.
>
> > Thanks
> > Cam
>
> > On Jan 24, 9:03 pm, "cammo" <[EMAIL PROTECTED]> wrote:
> > > Cheers,
> > > I think I have got it working now.
> > > I tried all of the methods previously shown in the group but had no
> > > luck.
> > > think I may have changes a file that may have caused it to not work
>
> > > I appreciate your help,
> > > Cam
>
> > > On Jan 24, 8:45 pm, "Eric C Blount" <[EMAIL PROTECTED]> wrote:
>
> > > > Search the group.
>
> > > > If you set up wildcard DNS and modify your routes.php file, this
> > > > should be an easy task. Just check $_SERVER['HTTP_HOST'] and
> > > > extrapolate the subdomain. Re-route to
> > > > yourdomain.com/clients/[clientname]/whatever.
>
> > > > HTH,
> > > > Eric
>
> > > > On 1/24/07, cammo <[EMAIL PROTECTED]> wrote:
>
> > > > > I was wondering if anybody has been able to run cakephp with seperate
> > > > > app directories for seperate subdomains.
> > > > > something similar to how an application like bascamp operates i.e new
> > > > > accounts get created as a subdomain which allow for seperate views for
> > > > > each client, but run from the same core files and the generic
> > > > > controllers and models which exist in the app directory.
>
> > > > > I thought that it would be as simple as uncommenting the bootstrap.php
> > > > > file and setting the controller,model and view paths but could not get
> > > > > it to work.
>
> > > > > Has anybody had any success out there, and if so could they please
> > > > > share how they got it going.
> 
> > > > > Thanks in advance.


--~--~---------~--~----~------------~-------~--~----~
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