[symfony-users] Re: how to write to an html file and display?

2007-12-15 Thread weaverryan
For clarification - instead of displaying the html, you want to write it to an html file and then redirect the browser to that html file? If so, why? Or is it that you want to display the actual html code on the screen? Both of these can be done - the first in multiple ways. What are you looking

[symfony-users] Re: how to write to an html file and display?

2007-12-15 Thread Angelina Talley
Well, the core issue is this. At the time I go through the action, I have certain user data that we do not store that I wish to display and also save to display later. So, I want to be able to create the HTML using my regular symfony action, save it, and then display as normal. Later, I'd like to

[symfony-users] Changing Layouts Dynamically....

2007-12-15 Thread James
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

[symfony-users] Re: Changing Layouts Dynamically....

2007-12-15 Thread James
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

[symfony-users] Re: Changing Layouts Dynamically....

2007-12-15 Thread Kiril Angov
Please, be more specific than just it did not work. If you look at your log/frontend_dev.log does it say that it could not find the layout file or some other error? Kupo James wrote: Yeah I tried that too. That didn't work either. James On Dec 15, 2007, at 10:23 PM, Kiril Angov wrote:

[symfony-users] Re: Changing Layouts Dynamically....

2007-12-15 Thread James
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

[symfony-users] Re: Changing Layouts Dynamically....

2007-12-15 Thread James
Well as i said I figured it out. i was doing sfConfig:setLayout(), I should have been doing sfAction:setLayout(). I was calling the wrong object. I still haven't figured out logging. Then again haven't really dived into it. I have no frontend/log dir/file and the project/log