Frank,

I am not sure you need to use sfDimensionsPlugin for this. Can you simply do
the following:

public function preExecute()
{
    if($someCondition)
    {
        $this->setLayout('mylayout');
    }
}


sfDimensionsPlugin changes the lookup paths for all files, not just the the
layout, it is probably over kill for what you are trying to do.

Cheers,

Dustin

On 11/4/07 5:00 PM, "Frank Stelzer" <[EMAIL PROTECTED]> wrote:

> 
> Hi,
> I have a understanding problem with sfDimensionsPlugin. I want to set
> a dimension, within a preExecute action method, to be able to call a
> complete different layout.php than the rest does.
> 
> Example
> my_module1 -> should always be rendered with /app/templates/layout.php
> my_module2 -> should always be rendered with /app/templates/
> dimension_1/layout.php
> 
>   Is this possible? I tested it, but i was not successful.
> 
> I noticed, that one could change the dimension settings with request
> vars, but i do not to use it. The user should not be able to change
> the layout by changing the request vars.
> 
> Is this somehow possible? May a special filter for dimension
> controlling help?
> 
> - Frank
> 
> 
> > 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to