[symfony-users] Public Accessible Code

2009-11-30 Thread Paul Witschger
I want to build some extras (plugins, add ons, whatever), that I can offer to clients. These add ons will be things like photo galleries, news article listings, blogs, etc. I want to put these add ons in a location where any and all projects have access to them. I don't want to have to copy the

Re: [symfony-users] symfony email

2009-11-29 Thread Paul Witschger
mfony-project.org/reference/1_4/en/05-Factories#chapter_05_mailer > > On Sun, Nov 29, 2009 at 20:49, Paul Witschger wrote: > >> Hey all, >> >> I have the following code being handled after a Contact Us form submission. >> The first thing I do is fill the $conta

[symfony-users] symfony email

2009-11-29 Thread Paul Witschger
Hey all, I have the following code being handled after a Contact Us form submission. The first thing I do is fill the $contact object, call $contact->save(); and then this: # begin code # ## if( ! empty( $contact->email ) ) { if( ! empty( $contact->name ) ) { $from = a

Re: [symfony-users] forms and validation

2009-11-29 Thread Paul Witschger
m class and validators will kick in to check. > - If error on bind, return to view that displays errors otherwise if > no validation errors continue processing... > > For more info, look at the forms > book: http://www.symfony-project.org/forms/1_2/en/ > > > On Sun, Nov 29, 2

[symfony-users] forms and validation

2009-11-28 Thread Paul Witschger
OK, newbie question here. I used doctrine to build my forms. I then used the non-base class to customize my forms since I don't need every single field in the form (all I'm doing is unsetting the fields I don't want). In the BaseContactForm class, it is setting all the fields as well as $this-

Re: [symfony-users] Re: redirect

2009-11-27 Thread Paul Witschger
I'm just trying to see if there is a good way around it. larry wrote: > On Nov 27, 3:32 am, Paul Witschger wrote: > >> I have a page with a contact form at '/contact'. The form gets submitted >> to '/contactsubmit'. This function does what it has to do,

[symfony-users] redirect

2009-11-27 Thread Paul Witschger
I have a page with a contact form at '/contact'. The form gets submitted to '/contactsubmit'. This function does what it has to do, and then redirects to '/contactthankyou?' . http_build_query($request->getParameter('contact')); This works. But I would like to know if there is a way that I can

[symfony-users] symfony mailer question

2009-11-26 Thread Paul Witschger
I'm new to symfony, so I apologize now if this has already been answered, or is a stupid question. I'm trying to setup one of my form submissions to send an email whenever it is submitted (Contact Form). I've read the What's New section of 1.3 and it shows that you can do: $this->getMailer()->

Re: [symfony-users] Re: Doctrine_Record_UnknownPropertyException

2009-11-19 Thread Paul Witschger
I did a little trial and error and found out that if you change your method call to: in my case getAddress_2() in your case getPhone_1() it will work. I'm not sure why it camel cases the function call, if it doesn't work, but I do think it may have something to do with it only containing a dig

[symfony-users] Re: < in javascript code is stripped

2009-11-16 Thread Paul Witschger
I'm going to assume you are building your javascript in the controller and putting it into a variable to be outputted in the view. If this is not the case, disregard my answer below. I'm new to symfony, so I apologize if there is a better way, but from what I can determine, you basically have t