I figured out where it has to go.  Has to go in the action file.  So  
it looks like if I ad

sfAction::setLayout('layout2);

in preExecute() in my actions file it should set up the layout for me.

James

On Dec 15, 2007, at 10:41 PM, James wrote:

> Yeah I tried that too.  That didn't work either.
>
> James
>
>
>
> On Dec 15, 2007, at 10:23 PM, Kiril Angov wrote:
>
>>
>> You should not specify the extentions of the template you want to  
>> change
>> to.
>>
>> myOtherLayout.php -> myOtherLayout
>>
>> eg. sfConfig::setLayout('myLayout');
>>
>>
>> Kupo
>>
>> James wrote:
>>> Hi Guys,
>>>
>>> I am working on a website idea that will need to have the layout
>>> change for each different domain that hits the main application.  I
>>> had asked this question in the forums
>>>
>>> http://www.symfony-project.org/forum/index.php/m/40732/?srch=change+layout+how#msg_40732
>>>
>>> which points specifically to sfFilter, preExecute, and sfConfig
>>>
>>> I tried sfConfig::setLayout('myLayout.php'); in a myriad of places.
>>> To no avail.
>>>
>>> I also searched the forums and found this
>>>
>>> http://www.symfony-project.org/forum/index.php/m/32239/?srch=change+layout+how#msg_32239
>>>
>>> The solution that was recommended was to put in the layout.php file
>>>
>>> <?php $sf_context->getCurrentViewInstance()-
>>>> setDecoratorTemplate('myOtherLayout.php') ?>
>>>
>>> Which failed.  I don't understand why.  I checked the API for sfView
>>> used getDecroatorDirectory() and know that the file was put in the
>>> right directory.  so I don't understand why it wouldn't change my
>>> template
>>>
>>> Can someone point me in the right direction?
>>>
>>> James
>>>
>>>>
>>>
>>>
>>
>>
>> >>
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to