[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread SeeVik

Oh yes. It does work. I just had to remove the "default" and use the
{$view_name}Success as u told Andy. Thanks a lot.

Vikram

On Feb 23, 8:32 pm, SeeVik  wrote:
> Hello Andy.
>
> This doesn't work. It doesn't display the customized layout. I tried
> with this view.yml
>
> modules/firstModule/config/view.yml
> 
> default:
>   showQa:
>     layout: popupLayout
>
> modules/firstModule/actions.class.php
> --
> public function executeShowQa()
> {
>      $this->mesg = "This is a new layout";
>
> }
>
> Thanks and regards
> Vikram
>
> On Feb 23, 8:16 pm, "Andy Dziahel'"  wrote:
>
> > Hmm. As long as I remember, you may edit modulename/config/view.yml like
> > this:
>
> > firstaction:
>
> > >   layout:  customLayoutName
> > > secondaction:
> > >   layout:  customLayoutName
>
> > On Mon, Feb 23, 2009 at 13:08, SeeVik  wrote:
>
> > > Hello Andy. Thanks for that handy trick.
>
> > > I wanted to know whether there is any way we can escape the layout for
> > > a set of actions without everytime writing in the action $this-
> > > >setLayout('layoutname');
>
> > > Thanks and Regards
> > > Vikram
>
> > > On Feb 23, 7:54 pm, "Andy Dziahel'"  wrote:
> > > > Hi.
>
> > > > $this->setLayout('layoutName')?
>
> > > > On Mon, Feb 23, 2009 at 12:48, SeeVik 
> > > wrote:
>
> > > > > Hello all,
>
> > > > > In one of the actions I have defined in controller, I do not want to
> > > > > use the global template file layout.php. How config should I use in
> > > > > this situation?
>
> > > > > Like I am creating a webapp and I have a link which opens in new
> > > > > window. In this window, I don't want to display the site header and
> > > > > footers. But they are included in the layout of the website. How can I
> > > > > escape them?
>
> > > > > Thanks and Regards
> > > > > Vikram
>
> > > > --
> > > > With the best regards, Andy.
>
> > --
> > With the best regards, Andy.
--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread SeeVik

Hello Andy.

This doesn't work. It doesn't display the customized layout. I tried
with this view.yml

modules/firstModule/config/view.yml

default:
  showQa:
layout: popupLayout


modules/firstModule/actions.class.php
--
public function executeShowQa()
{
 $this->mesg = "This is a new layout";
}

Thanks and regards
Vikram

On Feb 23, 8:16 pm, "Andy Dziahel'"  wrote:
> Hmm. As long as I remember, you may edit modulename/config/view.yml like
> this:
>
> firstaction:
>
>
>
> >   layout:  customLayoutName
> > secondaction:
> >   layout:  customLayoutName
>
> On Mon, Feb 23, 2009 at 13:08, SeeVik  wrote:
>
> > Hello Andy. Thanks for that handy trick.
>
> > I wanted to know whether there is any way we can escape the layout for
> > a set of actions without everytime writing in the action $this-
> > >setLayout('layoutname');
>
> > Thanks and Regards
> > Vikram
>
> > On Feb 23, 7:54 pm, "Andy Dziahel'"  wrote:
> > > Hi.
>
> > > $this->setLayout('layoutName')?
>
> > > On Mon, Feb 23, 2009 at 12:48, SeeVik 
> > wrote:
>
> > > > Hello all,
>
> > > > In one of the actions I have defined in controller, I do not want to
> > > > use the global template file layout.php. How config should I use in
> > > > this situation?
>
> > > > Like I am creating a webapp and I have a link which opens in new
> > > > window. In this window, I don't want to display the site header and
> > > > footers. But they are included in the layout of the website. How can I
> > > > escape them?
>
> > > > Thanks and Regards
> > > > Vikram
>
> > > --
> > > With the best regards, Andy.
>
> --
> With the best regards, Andy.
--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread Andy Dziahel'
Vikram,

Looks like I was wrong.

firstaction*Success*:
>   layout:  customLayoutName
> secondaction*Success*:
>   layout:  customLayoutName
>

Of course, if you want custom layout for firstactionError.php template, you
shoud refer them in view.yml accordingly.

On Mon, Feb 23, 2009 at 13:08, SeeVik  wrote:

>
> Hello Andy. Thanks for that handy trick.
>
> I wanted to know whether there is any way we can escape the layout for
> a set of actions without everytime writing in the action $this-
> >setLayout('layoutname');
>
> Thanks and Regards
> Vikram
>
> On Feb 23, 7:54 pm, "Andy Dziahel'"  wrote:
> > Hi.
> >
> > $this->setLayout('layoutName')?
> >
> >
> >
> >
> >
> > On Mon, Feb 23, 2009 at 12:48, SeeVik 
> wrote:
> >
> > > Hello all,
> >
> > > In one of the actions I have defined in controller, I do not want to
> > > use the global template file layout.php. How config should I use in
> > > this situation?
> >
> > > Like I am creating a webapp and I have a link which opens in new
> > > window. In this window, I don't want to display the site header and
> > > footers. But they are included in the layout of the website. How can I
> > > escape them?
> >
> > > Thanks and Regards
> > > Vikram
> >
> > --
> > With the best regards, Andy.
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread Andy Dziahel'
Hmm. As long as I remember, you may edit modulename/config/view.yml like
this:

firstaction:
>   layout:  customLayoutName
> secondaction:
>   layout:  customLayoutName
>

On Mon, Feb 23, 2009 at 13:08, SeeVik  wrote:

>
> Hello Andy. Thanks for that handy trick.
>
> I wanted to know whether there is any way we can escape the layout for
> a set of actions without everytime writing in the action $this-
> >setLayout('layoutname');
>
> Thanks and Regards
> Vikram
>
> On Feb 23, 7:54 pm, "Andy Dziahel'"  wrote:
> > Hi.
> >
> > $this->setLayout('layoutName')?
> >
> >
> >
> >
> >
> > On Mon, Feb 23, 2009 at 12:48, SeeVik 
> wrote:
> >
> > > Hello all,
> >
> > > In one of the actions I have defined in controller, I do not want to
> > > use the global template file layout.php. How config should I use in
> > > this situation?
> >
> > > Like I am creating a webapp and I have a link which opens in new
> > > window. In this window, I don't want to display the site header and
> > > footers. But they are included in the layout of the website. How can I
> > > escape them?
> >
> > > Thanks and Regards
> > > Vikram
> >
> > --
> > With the best regards, Andy.
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread SeeVik

Hello Andy. Thanks for that handy trick.

I wanted to know whether there is any way we can escape the layout for
a set of actions without everytime writing in the action $this-
>setLayout('layoutname');

Thanks and Regards
Vikram

On Feb 23, 7:54 pm, "Andy Dziahel'"  wrote:
> Hi.
>
> $this->setLayout('layoutName')?
>
>
>
>
>
> On Mon, Feb 23, 2009 at 12:48, SeeVik  wrote:
>
> > Hello all,
>
> > In one of the actions I have defined in controller, I do not want to
> > use the global template file layout.php. How config should I use in
> > this situation?
>
> > Like I am creating a webapp and I have a link which opens in new
> > window. In this window, I don't want to display the site header and
> > footers. But they are included in the layout of the website. How can I
> > escape them?
>
> > Thanks and Regards
> > Vikram
>
> --
> With the best regards, Andy.
--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread Lee Bolding

Actually, you don't need to do this in code at all.

You can specify the layout to use in the modules view.yml

- Original Message -
From: "Thomas Dedericks" 
To: symfony-users@googlegroups.com
Sent: Monday, February 23, 2009 10:56:51 AM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: [symfony-users] Re: How to escape global site layout for an action?


Hi,

Just set the layout name to false in the action:

$this->setLayout(false);

 

Thomas Dedericks

tho...@tequila-studio.com
GSM: +32 (0) 499 23 60 22
http://tequila-studio.com


Le lundi 23 février 2009 à 02:48 -0800, SeeVik a écrit :
> Hello all,
> 
> In one of the actions I have defined in controller, I do not want to
> use the global template file layout.php. How config should I use in
> this situation?
> 
> Like I am creating a webapp and I have a link which opens in new
> window. In this window, I don't want to display the site header and
> footers. But they are included in the layout of the website. How can I
> escape them?
> 
> Thanks and Regards
> Vikram
> > 
> 




--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread SeeVik

Hello Thomas,

Setting the layout to false completely ruins the css as well. But it
works for sure.

Thanks
Vikram

On Feb 23, 7:56 pm, Thomas Dedericks 
wrote:
> Hi,
>
> Just set the layout name to false in the action:
>
>         $this->setLayout(false);
>
> Thomas Dedericks
>
> tho...@tequila-studio.com
> GSM: +32 (0) 499 23 60 22http://tequila-studio.com
>
> Le lundi 23 février 2009 à 02:48 -0800, SeeVik a écrit :
>
> > Hello all,
>
> > In one of the actions I have defined in controller, I do not want to
> > use the global template file layout.php. How config should I use in
> > this situation?
>
> > Like I am creating a webapp and I have a link which opens in new
> > window. In this window, I don't want to display the site header and
> > footers. But they are included in the layout of the website. How can I
> > escape them?
>
> > Thanks and Regards
> > Vikram
--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread Thomas Dedericks

Hi,

Just set the layout name to false in the action:

$this->setLayout(false);

 

Thomas Dedericks

tho...@tequila-studio.com
GSM: +32 (0) 499 23 60 22
http://tequila-studio.com


Le lundi 23 février 2009 à 02:48 -0800, SeeVik a écrit :
> Hello all,
> 
> In one of the actions I have defined in controller, I do not want to
> use the global template file layout.php. How config should I use in
> this situation?
> 
> Like I am creating a webapp and I have a link which opens in new
> window. In this window, I don't want to display the site header and
> footers. But they are included in the layout of the website. How can I
> escape them?
> 
> Thanks and Regards
> Vikram
> > 
> 


--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to escape global site layout for an action?

2009-02-23 Thread Andy Dziahel'
Hi.

$this->setLayout('layoutName')?
>

On Mon, Feb 23, 2009 at 12:48, SeeVik  wrote:

>
> Hello all,
>
> In one of the actions I have defined in controller, I do not want to
> use the global template file layout.php. How config should I use in
> this situation?
>
> Like I am creating a webapp and I have a link which opens in new
> window. In this window, I don't want to display the site header and
> footers. But they are included in the layout of the website. How can I
> escape them?
>
> Thanks and Regards
> Vikram
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---