[symfony-users] multiple select in a single DB field

2009-08-27 Thread Mihai Rusoaie
Hello! Can I store a multiple select in a single database field? I don't need too many fields in the multiple select (about 5). Is there any way to do this using sfWidgetFormChoice and sfValidatorChoice in Symfony 1.2? If yes, what should be the schema field type and what objects to use? Than

[symfony-users] Re: save all values in lower case

2009-08-27 Thread Hellmich Dennis
You could do some data-preprocessing in the action or BETTER in the model. E.g. you could override the setXXX functions or the save method See also http://de.php.net/manual/en/function.strtolower.php Am 27.08.2009 um 03:18 schrieb Germana Oliveira: > > I'm wondering how i can save all the v

[symfony-users] Re: Form input manipulation before validation

2009-08-27 Thread mintao
Hi José, this is exactly what I was looking for. Thank you! best regards Florian On Aug 27, 2:36 am, José Nahuel Cuesta Luengo wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > mintao escribió:> I have an input field for an URL. > > When the form is submittet I'm using sfValidatorDo

[symfony-users] Doctrine Routing Object in Template

2009-08-27 Thread Mathieu Tricoire
Hi! AnyOne can help me? I want retrieve the Doctrine Route Object in a template how i can do that without define a variable in actions? AnyOne knows a possibility to retrieve with a variable like $sf_context for example? Thanks. Sorry for my english... --~--~-~--~~~---~

[symfony-users] Re: multiple select in a single DB field

2009-08-27 Thread José Nahuel Cuesta Luengo
I've never tried this, but you may save the serialized array of selected options in a longvarchar field. I would change sfValidatorChoice and use a custom one that returns the result of php's serialize($values_array). Hope I made myself clear. -- José Nahuel Cuesta Luengo El 27/08/2009, a

[symfony-users] form wizard

2009-08-27 Thread krishan
Hi I would like to make a wizard in which all form fields will come one by one. This will continue until all form input are submitted by user and finish in last. What is the best way to do this friends? Thank you krishan --~--~-~--~~~---~--~~ You received this me

[symfony-users] Re: form wizard

2009-08-27 Thread cleve
Have you seen this: http://blog.adryjanek.eu/2009/03/24/symfony-12-and-multipage-form-wizard/ On Aug 27, 7:33 am, krishan wrote: > Hi > > I would like to make a wizard in which all form fields will come one > by one. > This will continue until all form input are submitted by user and > finish i

[symfony-users] Re: Doctrine Routing Object in Template

2009-08-27 Thread Eno
On Thu, 27 Aug 2009, Mathieu Tricoire wrote: > Hi! AnyOne can help me? I want retrieve the Doctrine Route Object in a > template how i can do that without define a variable in actions? > AnyOne knows a possibility to retrieve with a variable like > $sf_context for example? Thanks. Sorry for my en

[symfony-users] Re: What symfony gives us regarding objects/collections

2009-08-27 Thread Dennis
So Doctrine generates two base classes per database table ? (at aminimum, probably) On Aug 26, 9:02 pm, Eno wrote: > On Wed, 26 Aug 2009, Dennis wrote: > > The automatic class(es) that Symfony generates that are named after > > tables in the Dbase . . . > > > Are they: > >   The collection (

[symfony-users] Re: Doctrine Routing Object in Template

2009-08-27 Thread Mathieu Tricoire
Thx but I was already see that, I'm not success to retrieve Object because that return a sfPatternRouting object and not a doctrineRouting object, so i can't do getObject on it, If you have an other solution? Thx. On 27 août, 14:57, Eno wrote: > On Thu, 27 Aug 2009, Mathieu Tricoire wrote: > >

[symfony-users] Re: Doctrine Admin Generator: javascript message localization

2009-08-27 Thread Syndicut
I managed to translate this string by adding translation to file (relative to project root): lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/i18n/ sf_admin.YOUR_LOCALE.xml It should be sfPropelPlugin if you use Propel. On 10 авг, 19:20, televas wrote: > Hi, > I'm using the i18n support in some

[symfony-users] Re: Upload image with admin generator

2009-08-27 Thread Troffi
You can upload image by admin generator but only this way: http://www.searbe.co.uk/symfony-admin-generator-file-upload On 1 авг, 00:03, bogo wrote: > Hi, > I'd like to upload image using admin generator. I've tried set field > type in my generator.yml to: > >       edit: >         title:        

[symfony-users] Re: What symfony gives us regarding objects/collections

2009-08-27 Thread Eno
On Thu, 27 Aug 2009, Dennis wrote: > So Doctrine generates two base classes per database table ? (at > aminimum, probably) Two bases classes per model, yes. -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[symfony-users] Plain text field in admin generator for 1.2+

2009-08-27 Thread isleshocky77
This seems to me like it would be a big problem; however, it's been quite a while and I haven't heard anything on a clean solution as of yet. Is there anything in the works for 1.3 or anything that can be packported to 1.2 for this? http://trac.symfony-project.org/ticket/5296 -- Stephen Ostrow

[symfony-users] sfWidgetFormChoice

2009-08-27 Thread mattsister
I have a TINYINT column in my db that represent the month. In the filter section of my backend I want a select instead of an input text. So I made this in my filter class: $mese_choices = array( '' => 'Tutti i mesi', 1 => 'Gennaio', 2 => 'Febbraio', 3 => 'Marzo',

[symfony-users] Symfony 1.2 propel admin generator hide fields only in edit form

2009-08-27 Thread Sid Bachtiar
Hi all, I'm trying to understand the new admin generator for Symfony 1.2 I have a field 'image', and I don't want people to edit it, only when inserting new record. Do I have to create separate form class for this? -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~-

[symfony-users] Re: Symfony 1.2 propel admin generator hide fields only in edit form

2009-08-27 Thread Sid Bachtiar
A bit more info, my schema: email_banner: id: { type: integer, primaryKey: true, autoIncrement: true } image: { type: varchar(255), required: true, unique: true } descr: { type: longvarchar } is_active: { type: boolean, required: true, default: true } created_at: When I edi

[symfony-users] Symfony (Error 500)

2009-08-27 Thread Jon Levischi
Hey guys, I'm new with Symfony. Trying to install since friday, but I'm getting a issue. Here is my config: - Apache 2.2.13 - MySQL 5.1.37 - PHP 5.2.10 - OS: Windows Vista Eternity 2009 - ORM: Propel I ran the check file and solve all warnings. Everything seems to install the way it should. Exce

[symfony-users] Re: Symfony (Error 500)

2009-08-27 Thread Sid Bachtiar
Hi, What symfony version are you using? How did you create the project? On Fri, Aug 28, 2009 at 12:07 PM, Jon Levischi wrote: > > Hey guys, I'm new with Symfony. > Trying to install since friday, but I'm getting a issue. > > Here is my config: > - Apache 2.2.13 > - MySQL 5.1.37 > - PHP 5.2.10 >

[symfony-users] Re: Symfony 1.2 propel admin generator hide fields only in edit form

2009-08-27 Thread José Nahuel Cuesta Luengo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sid Bachtiar escribió: > Hi all, > > I'm trying to understand the new admin generator for Symfony 1.2 > > I have a field 'image', and I don't want people to edit it, only when > inserting new record. > > Do I have to create separate form class for

[symfony-users] Re: Flash attribute of sfUser not working in test and production environment

2009-08-27 Thread Eno
On Wed, 26 Aug 2009, dagger wrote: > yeah thanks, can u also provide me with some links? http://www.symfony-project.org/blog/category/Case+studies http://trac.symfony-project.org/wiki/ApplicationsDevelopedWithSymfony > also - any one face a similar issue with session and test/production > envir

[symfony-users] Re: form wizard

2009-08-27 Thread Krishan .G
Thank you man, That article has all information that I need. :) On Thu, Aug 27, 2009 at 5:36 PM, cleve wrote: > > Have you seen this: > > http://blog.adryjanek.eu/2009/03/24/symfony-12-and-multipage-form-wizard/ > > On Aug 27, 7:33 am, krishan wrote: > > Hi > > > > I would like to make a wizard

[symfony-users] Re: Symfony (Error 500)

2009-08-27 Thread Eno
On Thu, 27 Aug 2009, Jon Levischi wrote: > The browser is giving me the 500 error. > I wrote some script to test vhost configuration and works fine. > Only the project is giving me error. The best way to find out what the error is, is to look at the Apache error log for that vhost, or the symfo