[symfony-users] Re: project:disable not working

2009-10-02 Thread Steve the Canuck
Thanks! On Oct 2, 9:41 am, Gábor Fási maerl...@gmail.com wrote: http://www.symfony-project.org/reference/1_2/en/04-Settings#chapter_0... On Fri, Oct 2, 2009 at 15:39, Steve Sanyal steve.san...@gmail.com wrote: Hi, I'm trying to use project:disable when I perform app maintenance, but

[symfony-users] Re: Deployment problem in production

2009-09-27 Thread Steve the Canuck
Hi Alecs and everyone, Thanks for your responses. I'm deploying this to a Linux box running Apache. It's a reseller account, so I don't think I can create virtual servers. Alecs - the solution you wrote is the one I said was not possible in my original message. That's because in my

[symfony-users] Re: Multiple objects' forms on one page

2009-09-27 Thread Steve the Canuck
Hi, I think the big problem I ran into is the symfony 1.2 book claims to be the primary reference but contains no documentation on forms. It was a whlie before I realized I had to read the forms book too! Regardless, the forms book doesn't have any examples on embedding. I had to experiment

[symfony-users] Re: Need help with symfony redirection problem/bug

2009-09-27 Thread Steve the Canuck
Hi, I think the require_ssl is a bit of a red herring here. The main thing I see in the require_ssl debug points I added is that for some reason the framework thinks my current action is signin whereas it should be something else, since I already signed in and I performed a number of other

[symfony-users] Re: Expiring page when back button is pressed

2009-08-14 Thread Steve the Canuck
Hi, I understand the browser is caching the page, but there must be some way of preventing the browser from simply caching the page, no? If I go to the Symfony Plugins page and then login, I see the panel indicate that I'm logged in. If I hit back, I see a slightly different page, shown to

[symfony-users] Re: Expiring page when back button is pressed

2009-08-14 Thread Steve the Canuck
allow is when there are validation errors, but only because it is too much of a hassle to save the error messages in flash for after the redirect... On Aug 14, 3:39 pm, Steve the Canuck steve.san...@gmail.com wrote: Hi, I understand the browser is caching the page, but there must be some

[symfony-users] Re: Get record values before save()

2009-07-10 Thread Steve the Canuck
with multiple database types is a doddle compared to what it would have been had we used a bunch of custom SQL queries and MySQL triggers. My point is, you never know what can happen, and this is only ONE example of many such experiences I have had On Thu, Jul 9, 2009 at 4:57 PM, Steve the Canuck

[symfony-users] Re: Get record values before save()

2009-07-09 Thread Steve the Canuck
The best way to do this is create an audit table and write a simple trigger to insert records on each change If you want to do it programmatically you can create a behavior. Steve On Jul 9, 9:14 am, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: sf1.2 doctrine Hi, I'm trying to

[symfony-users] Re: Get record values before save()

2009-07-09 Thread Steve the Canuck
Unforntately, I haven't used Doctrine. Sorry. On Jul 9, 10:22 am, Rene r...@pc-dummy.net wrote: Hi Steve, Do you known a way to do that with doctrine integrated tools? Currently i use my getModified() way ... Thank you, Rene Jochum Steve the Canuck schrieb: The best way to do

[symfony-users] Re: Get record values before save()

2009-07-09 Thread Steve the Canuck
(if there is such a word lol) On Thu, Jul 9, 2009 at 3:37 PM, Steve the Canuck steve.san...@gmail.comwrote: The best way to do this is create an audit table and write a simple trigger to insert records on each change If you want to do it programmatically you can create a behavior. Steve

[symfony-users] Re: Deployment Strategies

2009-07-09 Thread Steve the Canuck
I'm still in the latter stages of development, but my strategy is to allow my deployment to easily rollback to the previous version and avoid any mistakes in terms of SVN syncing. I see it going something like this: load desired svn tag in my development copy smoke test development copy disable

[symfony-users] Re: generate url in symfony task

2009-07-09 Thread Steve the Canuck
One update do this - I omitted below that you also need to change the 'prefix' in the context array, which I also obtain via lookup. For development, it's: '/frontend_dev.php'. Thanks, Steve On Jul 9, 3:15 am, Steve the Canuck steve.san...@gmail.com wrote: There are some other posts

[symfony-users] Re: How do I call a non SUCCESS using setTemplate?

2009-07-07 Thread Steve the Canuck
Thanks for the replies. Normally, I use partials and do return custom view strings. This case is a bit different. I have a few variations of an action: applyToReservation, applyToImmediateReservation, etc. Some of the non SUCCESS views are the same for these actions, so I placed them in

[symfony-users] Re: Undefined method error due to __call method in model objects

2009-07-02 Thread Steve the Canuck
Very strange, if instead I do this: if($this-hasTimeConflict($reservProv)) It seems to work fine. I'm not sure why PHP is finding the method in this case, but not the other case. The signature is quite simple: public function hasTimeConflict(ReservProvider $otherReservProv) Very

[symfony-users] Re: Conditional forward404 performance

2009-06-24 Thread Steve the Canuck
Thanks. Yes it looks like I'll want to refactor this stuff. I use this code on almost every call. On Jun 24, 4:41 am, Fabian Lange fabian.la...@symfony-project.com wrote: Hello, Yes PHP will process the whole instruction, because it needs to gather all information before making the method

[symfony-users] Re: Out of memory error with propel:data-load

2009-06-11 Thread Steve the Canuck
Yes inadequate resources would be my concern also, if it were to occur in other cases. I'm using a hosting provider which was recommended as a symfony friendly provider on the website. They have provided very good support so far. They told me the next time the problem happens, they can monitor

[symfony-users] Re: Out of memory error with propel:data-load

2009-06-11 Thread Steve the Canuck
Thanks! I was thinking of this kind of solution also, but I wasn't sure how long it would take me to figure out. I'm mostly a Java/J2EE guy, so PHP is a bit new to me. I am curious to hear what the comments on this patch will be after review. Steve On Jun 11, 4:49 am, Sergey Stepanov

[symfony-users] Context inside tasks

2009-06-11 Thread Steve the Canuck
I found some more messages on this after digging and going through source. I can see why the symfony develolpers wanted to simplify tasks so they don't require contexts. Unfortunately, it also means that a lot of code may not be reusable in tasks. I'm not sure if there is a happy balance that

[symfony-users] Out of memory error with propel:data-load

2009-06-10 Thread Steve the Canuck
The propel:data-load task is running out of memory on my staging environment. I have about 10K records to include in my initial load. I don't have an issue on my laptop which I use for development, but I run into problems in a shared hosting environment. Does anyone know of any workarounds to

[symfony-users] Setting labels and help messages

2009-06-03 Thread Steve the Canuck
I was wondering if anyone has devised a method to set all the labels and help messages using some sort of lookup technique from a configuration file? Ideally, it would be great to do this for validation error messages also. Steve --~--~-~--~~~---~--~~ You

[symfony-users] Referer problem with sfGuardPlugin

2009-06-03 Thread Steve the Canuck
Hi, I'm getting a problem. I have a registration confirmation screen which the user gets to by clicking on a link in an email. After getting a confirmation, the user can login. However, sfGuardPlugin sends the user to the referer if there is a referer. It seems that this is causing the code

[symfony-users] Re: Referer problem with sfGuardPlugin

2009-06-03 Thread Steve the Canuck
signing in Thanks, Steve On Jun 3, 11:46 pm, Steve the Canuck steve.san...@gmail.com wrote: Hi, I'm getting a problem.  I have a registration confirmation screen which the user gets to by clicking on a link in an email. After getting a confirmation, the user can login.  However

[symfony-users] Re: FormSchemaFormatter - access to validator schema

2009-06-02 Thread Steve the Canuck
and Formatters Make sure to check this one ;)http://webmozarts.com/2009/04/23/improving-the-forms-layouts-and-form... Thanks. On May 28, 11:08 pm, Steve the Canuck steve.san...@gmail.com wrote: I have seen a few solutions to give the form schema formatter to get access to the validator

[symfony-users] embedding a form... sometimes

2009-06-02 Thread Steve the Canuck
Hi, I've been able to successfully embed forms, however, I have some cases in which I have what is essentially a conditional embedded form. I only need the embedded sub-form if the user selects a particular option. Does anyone have solutions to this? The one that comes to mind would be: 1)

[symfony-users] Re: FormSchemaFormatter - access to validator schema

2009-06-02 Thread Steve the Canuck
::setDefaultFormFormatterName('div'); ## Improving the Forms: Layouts and Formatters Make sure to check this one ;)http://webmozarts.com/2009/04/23/improving-the-forms-layouts-and-form... Thanks. On May 28, 11:08 pm, Steve the Canuck steve.san...@gmail.com wrote: I have seen a few solutions

[symfony-users] Rendering multi-field widgets

2009-06-02 Thread Steve the Canuck
I've created a div formatter and it works great for most of my widgets. The only exception are multi-field widgets, such as dates and times. I would like to a have a label on each of the sub-widgets and the easiest way to do this would be to simply render it like three separate rows. Is there

[symfony-users] FormSchemaFormatter - access to validator schema

2009-05-28 Thread Steve the Canuck
I have seen a few solutions to give the form schema formatter to get access to the validator schema for the form in order to do things like output the name of a required field. Adding the validator schema requires you to do so manually (either in the form itself, or using a helper in the

[symfony-users] Re: Detecting required fields

2009-05-26 Thread Steve the Canuck
Thanks! On May 21, 1:04 pm, gimler gordon.fra...@web.de wrote: http://blog.nevalon.de/en/wie-kann-ich-alle-formular-pflichtfelder-mi... greetings Gimler On May 21, 6:17 pm, Steve the Canuck steve.san...@gmail.com wrote: Hi, Is there an easy way to determine if a field isrequiredprior

[symfony-users] Detecting required fields

2009-05-21 Thread Steve the Canuck
Hi, Is there an easy way to determine if a field is required prior to rendering it? I'd like to render it with an * beside the label tag if it is required. I don't see a method like isRequired() built into the sfForm class, but I was wondering if anyone has a solution for this? If not, I will

[symfony-users] yaml config file array syntax

2009-05-08 Thread Steve the Canuck
I'm trying to retrieve the following as an array from my app.yml: app_paypal_postback_status I've tried the following configurations but neither works. What I am I doing wrong? Thanks! all: paypal: postback: timeout: 30 status: .array: new: W

[symfony-users] propel choice form - multi-select

2009-05-07 Thread Steve the Canuck
Hi, I am having some form troubles. I have a select dropdown which allows you select multiple options. If you select two options, I want to insert to records into the database. Here is a simple representation of the tables: User --- UserLevel --- Level So, I use the UserLevelForm and select

[symfony-users] Re: propel choice form - multi-select

2009-05-07 Thread Steve the Canuck
I should have titled this many-to-many. Basically all I'm looking for is an example of how to implement many to many relationships in forms. Thanks, Steve On May 7, 1:21 pm, Steve the Canuck steve.san...@gmail.com wrote: Hi, I am having some form troubles.  I have a select dropdown which

[symfony-users] Syntax for embedded forms

2009-05-07 Thread Steve the Canuck
I have embedded one form in another. What's the syntax for accessing the field? For example, I have ConsumerForm embedded in UserForm. The consumer has a first_name field. I've tried: first_name consumer_first_name consumer[first_name] in my templates, but none of them work. Thanks for

[symfony-users] Re: application exceptions

2009-05-03 Thread Steve the Canuck
there is important to delegate the decision-making from specific areas to more general areas of code. Hope that all made sense, Daniel On Apr 29, 6:39 am, Steve the Canuck steve.san...@gmail.com wrote: I haven't been able to find out much from the documentation regarding how to throw exceptions

[symfony-users] DateTime widgets

2009-05-03 Thread Steve the Canuck
Hi, I have an application where I need to get the date and time a reservation begins, and the duration. In the database I'd like to store the start/end values as DATETIME. Currently I've been using 2 built in sfWidgetDateTime objects - one for start_date_time, and the other for end_date_time.

[symfony-users] Re: Strange problem with autoloading

2009-05-03 Thread Steve the Canuck
I suggest you take a look in the appropriate config_autoload.yml.php files in your cache - it will show you if it's picking up the class or not. I've only done this for debugging issues at for classes in the project level lib directory, but I imagine it may be similar for the module level.

[symfony-users] Re: sfGuardPlugin fatal error

2009-04-29 Thread Steve the Canuck
The name of your module should be sfGuardAuth, not sfGuardUser. Your module effectively overrides the sfGuardPlugin's version, so it needs to follow exactly the same directory structure as the plugin's. On Apr 29, 6:08 am, Pierre Lecocq pierre.lec...@gmail.com wrote: Hello people, I have a

[symfony-users] application exceptions

2009-04-29 Thread Steve the Canuck
I haven't been able to find out much from the documentation regarding how to throw exceptions in my code and how Symfony will deal with them. I'm not talking about 404 errors and stuff, I know how to handle those. But I have some cases where I encounter exception conditions in my business logic

[symfony-users] Re: Override templates/actions of plugin in an application

2009-04-16 Thread Steve the Canuck
I am speculating a bit here, but I think it works like this: - if the template/action is found in an app module, then the app module version is used - if the template/action is found in a plugin, then the plugin version is used this suggests an order of precedence, where the app module

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Steve the Canuck
There are a few ways to do ajax based rendering. One way is to have the Ajax based action you are calling return you the chunk of HTML and then you just render that HTML. Another way is for the Ajax based action to return you a response (more appropriate if there are multiple pieces of data and

[symfony-users] sfGuardPlugin breaks after creating session db

2009-04-07 Thread Steve the Canuck
Hi, I created a separate session database today to store my sessions. The rest of my object model resides in a database with the alias propel in databases.yml. When I created the session database and regenerated my model, the sfGuardPlugin's model classes no longer seem to have methods that

[symfony-users] Re: sfGuardPlugin breaks after creating session db

2009-04-07 Thread Steve the Canuck
than if I place it in the order where session_db: is defined after the propel: alias. Steve On Apr 7, 3:53 pm, Steve the Canuck steve.san...@gmail.com wrote: Hi, I created a separate session database today to store my sessions.  The rest of my object model resides in a database with the alias

[symfony-users] Propel cascading update causes integrity violation

2009-04-06 Thread Steve the Canuck
Hi, I'm not sure why this is failing. If I do the following in one of my OM classes: // Set the reference to the reservation provider $this-setReservProvider($reservProvider); ... $this-save(); I get an integrity violation. It seems like all the fields get updated in the

[symfony-users] Re: Format of plain text email

2009-04-03 Thread Steve the Canuck
, Apr 2, 2009 at 21:31, Steve the Canuck steve.san...@gmail.com wrote: After playing around, it seems like I can do something like add a period . to the end of the line, and then the linebreak is properly recognized.  However, simply adding a space character doesn't do the trick

[symfony-users] Format of plain text email

2009-04-02 Thread Steve the Canuck
Hi, I am sending plain text emails from my app using Swift Mailer. The email bodies are all stored in partials. What I am noticing is that the line breaks are not in the email when the email is received. For example: A goalie has applied to play in your booking: From: ?php echo

[symfony-users] Re: Format of plain text email

2009-04-02 Thread Steve the Canuck
It looks like I have to put in two line breaks for each line break I want to see?! On Apr 2, 1:13 pm, FÁSI Gábor maerl...@gmail.com wrote: Do you get the linebreaks in the source? You can check it with the 'show original' menuitem under the downarrow. On Thu, Apr 2, 2009 at 18:46, Steve the Canuck

[symfony-users] Re: Format of plain text email

2009-04-02 Thread Steve the Canuck
why this is the case. I don't really want to put a period at the end of each line though, so if anyone knows how to solve this, I'd greatly appreciate it! Cheers, Steve On Apr 2, 3:23 pm, Steve the Canuck steve.san...@gmail.com wrote: No, it seems not, other than the first linebreak.  The email

[symfony-users] Re: Validating before show up the form

2009-03-25 Thread Steve the Canuck
Hi, Without understanding all the details of your application, the most obvious thought that comes to mind is that you'd have to put some business logic that controls whether the form is displayed, or takes another course of action. You'd need to perform this operation on the model directly

[symfony-users] Fixtures - can I specify a literal value on a linked table?

2009-03-25 Thread Steve the Canuck
Hi, I've got an entry in my fixture such as follows: Address: Address_1: state_prov_id: 36 street_addr: '3600 Vanrick Dr.' timezone_id: RefTimezone_1 city: Kalamazoo zip_postcode: '49001' longitude: '-85.5331' latitude: '42.2546' accuracy: '8' This fails,

[symfony-users] Re: Graceful fail on saving new objects

2009-03-25 Thread Steve the Canuck
I would suggest this comes down to application design and logic. Your business logic should not be creating duplicates of SomeClass if the instance already exists. You can do one of two things: 1) Do a lookup to see if the key already exists 2) Add a try catch block around the statement and

[symfony-users] Re: Fixtures - can I specify a literal value on a linked table?

2009-03-25 Thread Steve the Canuck
to consolidate the fixture files into one, to resolve the issue. Cheers, Steve On Mar 25, 4:24 pm, Lee Bolding l...@leesbian.net wrote: On 25 Mar 2009, at 17:59, Steve the Canuck wrote: I've got an entry in my fixture such as follows: Address:  Address_1:    state_prov_id: 36

[symfony-users] Re: Generate fixture from database contents

2009-03-16 Thread Steve the Canuck
Very much appreciated. Thanks. :-) On Mar 15, 2:04 pm, Yevgeniy A. Viktorov w...@osmonitoring.com wrote: I do same as maestro wrote, also you can specify the models you would like to get fixtures for, i.e: symfony propel:data-dump --classes=BlogPost,BlogComment frontend Thanks. maestro

[symfony-users] Re: Jobeet Day 7 schema.yml parse error

2009-03-16 Thread Steve the Canuck
It looks like an indent issue to me. On Mar 16, 4:29 pm, Mark hube...@missouristate.edu wrote: I'm having trouble with the schema.yml getting to build. I get a parse error. unable to parse line 3 Sluggable: And my file... JobeetCategory:   actAs: {Timestampable: ~ }     Sluggable:    

[symfony-users] Re: How to cleanly post populating form fields or object

2009-03-13 Thread Steve the Canuck
Thanks - I considered that option, but in this context, the postal/zip code is only valid if it can be geocoded. For example, if you buy a house in a new development, you may not be able to find your code yet. I'm just using Google at this point for Geocoding. It's pretty simple and easy to

[symfony-users] Re: How to cleanly post populating form fields or object

2009-03-13 Thread Steve the Canuck
Thanks. I have used this technique, for example when I want to set a field which I keep in the session rather than in the form. Unfortunately, in my case, I cannot use this approach because I do not have access to the values I want from within my action. Steve On Mar 12, 1:03 pm, wissl

[symfony-users] Re: How to cleanly post populating form fields or object

2009-03-13 Thread Steve the Canuck
Cool! I got this working, and a little cleaner than I expected. I created a post validator, and the validator itself returns the longitude and latitude coordinates as the cleaned values. I also discovered, that I could unset the coordinate fields in the form configuration, and as long as the

[symfony-users] Re: Best way to validate global, non field condition

2009-03-12 Thread Steve the Canuck
Thanks! I created a post validator called ValidatorPropelLimit. On Mar 12, 8:15 am, vadim samokhinva...@gmail.com wrote: I would try to use postValidator. You can use there your own validator that can do whatever you want, any manipulations with database. I guess you should watche out the

[symfony-users] Re: How do you efficiently build object graphs

2009-03-04 Thread Steve the Canuck
Thanks very much for the link! That really showed me what I was looking for. I don't think a database view is appropriate in my case, but the code was very useful. The key thing I wasn't aware of was use of the addColumns() and hydrate () methods in this context. I have solved this issue as

[symfony-users] Re: Symfony integration with Zend Lucene Search library

2009-02-26 Thread Steve the Canuck
Fantastic. Thank you. On Feb 26, 1:39 pm, Michael Smith sitecr...@gmail.com wrote: For info on loading the zend framework seehttp://www.symfony-project.org/jobeet/1_2/Propel/en/16#chapter_16_sub... also for using zend search with

[symfony-users] Re: Symfony integration with Zend Lucene Search library

2009-02-26 Thread Steve the Canuck
Thanks, that is good to know it works with Propel. Do you know if your plugin is being used in production environments at this point? What are the criteria to get beyond the beta release stage with the plugin? Thanks, Steve On Feb 26, 2:29 pm, Thomas Rabaix thomas.rab...@gmail.com wrote: