You could also do something like this in your AppController:

if (env('SERVER_NAME') == 'abstractpaints.com') {
   $this->layout = 'abstract';
}

Or even simplify it like,

$this->layout = str_replace('.', env("SERVER_NAME"));

(although my syntax is probably a little off there)

On Tue, Jul 8, 2008 at 9:42 AM, James K <[EMAIL PROTECTED]> wrote:
>
> This is why sub-domains exist. abstract.paintersgallery.com,
> impressionist.paintersgallery.com - making separate urls creates a
> problem that doesn't need to exist.
>
> On Jul 8, 5:54 am, mwcbrent <[EMAIL PROTECTED]> wrote:
>> Thanks in advance to anybody who expresses their ideas in response,
>> I'm sorta thinking this through as I write so any ideas are welcome:
>>
>> I am looking to create a system that creates new site iterations of
>> itself.  For example, an art gallery will have all of its
>> impressionist paintings on (www.impressionistpaints.com) and their
>> abstract work on (www.abstractpaints.com).  I want to build a single
>> site that would have just different templates throughout so that the
>> following would work:
>>
>> Master Site:www.paintersgallery.com
>>
>> Sub-Sites:www.impressionistpaints.com(points to 
>> paintersgallery.com/1)www.abstractpains.com(points to paintersgallery.com/2)
>>
>> So essentially there is a single /app folder that accepts parameters.
>> A single set of controllers, models and a single database with many
>> different templates.
>>
>> Is this do-able?  If so how would it work?
> >
>

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

Reply via email to