[symfony-users] Symfony 1.4 intermittent does not redirect

2011-05-24 Thread Eric B.
Hi, I'm running into a really strange bug here. I've got an action that finishes with a redirect() method: public function executeRegister(sfWebRequest $request) { // go to next step $this-redirect(submit/index); } However, I have been getting intermittent reports that

[symfony-users] Re: How to inform user that session has timed out?

2011-04-13 Thread Eric B.
One other way to do it is when the user logs in, store his username as a session variable: $this-getUser()-setAttribute('username', $username); Then when the user is redirected to the action that produces the login page when his session times out, check to see if that session variable

[symfony-users] Logging per-class only?

2011-03-23 Thread Eric B.
Hi, I'm somewhat new to Symfony and am trying to understand the framework better. I'm using SF1.4. Is there a way to enable different logging levels on a per-class basis? In my prod environment, I'd like to enable debug logging for a particular action only. I've looked at the logging.yml

[symfony-users] Re: Re: Re: AJAX session timeout handler

2011-01-26 Thread Eric B.
and the filter immediately responds with json string instead. So instead of delegating the work of responding with an ajax string to another action, the filter does it itself. On Tue, Jan 25, 2011 at 6:10 PM, Eric B. ebe...@hotmail.com wrote: Now I'm curious; what was the bug/ what was the fix

[symfony-users] Re: AJAX session timeout handler

2011-01-25 Thread Eric B.
I remember back in the early days of Chrome I used to have problems with JS and Ajax as well. But the newer versions seemed to have resolve the problems that I was encountering. Have you checked if the problem is Chrome to executing the JS properly, or if it is a server side issue in which

[symfony-users] Re: Re: AJAX session timeout handler

2011-01-25 Thread Eric B.
Gareth McCumskey gmccums...@gmail.com wrote in message news:AANLkTimTg8ZtSwHjN6x2xeW=xsmpRx=cctmnwzhzy...@mail.gmail.com... It works on Firefox therefore it is not server side. Regardless we fixed the problem. On Mon, Jan 24, 2011 at 5:33 PM, Eric B. ebe...@hotmail.com wrote: I

[symfony-users] Help with form validators

2011-01-22 Thread Eric B.
Hi, This is probably a basic question, and yet I can't seem to figure out the best way to do this. I have a registration form that has several fields, including 2 dependent ones: - Country - State. If Country == Canada, then I want the state field to have a drop down of all provinces If Country

[symfony-users] Use of slots in a component?

2011-01-17 Thread Eric B.
Hi, I have a simply component, in which I've tried to indicate the use of a slot. However, it seems to be ignored, and the html content that I place within the slot never appears in my final page. My component's template is: ?php use_helper( Partial ) ? ?php slot( head )? !-- content for slot

[symfony-users] Re: Including a custom global YAML file?

2011-01-17 Thread Eric B.
You do not need to do an include or require. Symfony autoloads config files into its sfConfig object. All you need to do is place it in root/lib if you want it availabel through the project or in root/apps/frontend/lib if you want only in that application or lastly in

[symfony-users] Counter in Doctrine/Symfony?

2011-01-16 Thread Eric B.
Hi, This isn't exactly a Symfony question as such, but I figure that someone else must have encountered the same issue in the past. I'm looking to make a counter table in my database to track entries of a particular document type. The goal is to be able to have a simply query (ex: select

Re: [symfony-users] Help getting the autoloader working within a component class?

2011-01-11 Thread Eric B
with my code? Thx, Eric On Tue, Jan 11, 2011 at 11:32 AM, Gareth McCumskey gmccums...@gmail.comwrote: Stick that form into either root/lib or into root/apps/frontend/lib On Mon, Jan 10, 2011 at 10:01 PM, Eric B ebenza...@gmail.com wrote: Hi, I've run into a problem with a component

[symfony-users] Help getting the autoloader working within a component class?

2011-01-10 Thread Eric B
Hi, I've run into a problem with a component instantiating an existing form, so it has prompted me to look into the autoloader to figure out why it isn't seeing the class. I've come to the conclusion that I can't seem to figure either out. So I guess this becomes a 2 part question; one is just

[symfony-users] How to populate a non-view template and return as text?

2011-01-09 Thread Eric B
Hi, Given that Symfony is built around templates, I am trying to figure out how I can leverage the power of the templates for other things, such as emails. For example, I would like to write up my email in a template form, then simply pass it the necessary variables to populate it. Finally, if I

Re: [symfony-users] How to populate a non-view template and return as text?

2011-01-09 Thread Eric B
of it in a variable: $email-setBody( $this-getPartial('myEmailPartial', array('partial_variable'=$partial_variable ); On Sun, Jan 9, 2011 at 11:23 PM, Eric B ebenza...@gmail.com wrote: Hi, Given that Symfony is built around templates, I am trying to figure out how I can leverage the power

Re: [symfony-users] How to include a form in a template in every page?

2011-01-08 Thread Eric B
the autoloader? Thanks! Eric On Fri, Jan 7, 2011 at 4:38 AM, Gábor Fási maerl...@gmail.com wrote: This is what components are for. Here's an example from jobeet: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19#chapter_19_language_switching On Fri, Jan 7, 2011 at 07:33, Eric B ebenza

Re: [symfony-users] Re: Debugging symfony application within Eclipse?

2011-01-06 Thread Eric B
On Thu, Jan 6, 2011 at 11:27 AM, Stéphane stephane.er...@gmail.com wrote: Hello, I've been made this for one+ year now. On Windows and Ubuntu boxes. (I'm actually on a ubuntu 10.10 box, and installing xdebug is easy as sudo pecl install xdebug ... then configuring is as easy as copy/past

[symfony-users] How to include a form in a template in every page?

2011-01-06 Thread Eric B
Hi, This may sound like a newbie question, but I just can't figure out the right way of doing this. I'm looking to put a simple login form in my layout template to appear in all pages. Since I don't have an action associated with the template itself, I'm not sure how to instantiate my

[symfony-users] Debugging symfony application within Eclipse?

2011-01-05 Thread Eric B
Hi, I'm wondering if anyone has had any success in getting a symfony app to debug (step-by-step) using Eclipse PDT. I've downloaded both the XDebug and the ZendDebug dlls and am having difficulties with both. The closest I've managed to get working is to try to create a launch config from

Re: [symfony-users] Best practice to allow for Action reuse?

2011-01-02 Thread Eric B
On Sun, Jan 2, 2011 at 9:08 AM, Svetoslav Shterev bgsa...@gmail.com wrote: On Sat, 2011-01-01 at 23:36 -0800, benze wrote: Hi, I'm trying to figure out the best way to reuse an action, and am having difficulty figuring that out. Specifically because my action seems to be tied to the

Re: [symfony-users] Re: Best practice to allow for Action reuse?

2011-01-02 Thread Eric B
On Mon, Jan 3, 2011 at 12:45 AM, Richtermeister nex...@gmail.com wrote: You can do that. Just Pass an extra Redirect Parameter to the route and Pick it up in the Action. Sure; that's what I ended up doing. But that assumes a lot of things: 1) that the action will be a success 2) that the

Re: [symfony-users] Best practice to use Eclipse PDT and symfony?

2010-12-14 Thread Eric B
Sure - Eclipse shows icons on files with errors, but when you have a large tree (like you do with symfony), it is tough to see the individual errors all the time. Furthermore, it is a lot easier to see in the console that you have errors when it is clean and not cluttered with 1000+ errors and