Re: [symfony-users] Error message format

2009-12-30 Thread Sid Bachtiar
I just tried it and it works really well! Thank you! :) On Wed, Dec 30, 2009 at 10:35 PM, Alexandru-Emil Lupu wrote: > in my Form class object i ave added : > > > >  public function getErrors($v = '') >  { >    foreach ($this->getErrorSchema() as $field=>$error ) >    { >      foreach ($error->ge

Re: [symfony-users] sfDoctrineGuard and behaviors

2009-12-30 Thread Lukas Kahwe Smith
On 31.12.2009, at 01:35, Stéphane wrote: > Check for symfony core events (about configuration loaded or such thing I > think -feeling), then you'll be able to modify tables definitions (retrieve > table object then addColumn "dynamically", not via configuration). That is > what Daniel was spea

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2009-12-30 Thread axel at
yes I use sfFormExtraPlugin 1.1.1, the latest stable version On 30 Dez., 19:29, gino pilotino wrote: > is this the _latest_ sfFormExtraPlugin ? > > On 30 Dic, 13:51, axel at wrote: > > > no one here with the same problem? any ideas? > > thx > > > On 29 Dez., 13:58, axel at wrote: > > > > after

Re: [symfony-users] sfDoctrineGuard and behaviors

2009-12-30 Thread Stéphane
Check for symfony core events (about configuration loaded or such thing I think -feeling), then you'll be able to modify tables definitions (retrieve table object then addColumn "dynamically", not via configuration). That is what Daniel was speaking about I believe. Cheers. Before Printing, Think

Re: [symfony-users] sfDoctrineGuard and behaviors

2009-12-30 Thread Lukas Kahwe Smith
On 31.12.2009, at 01:24, Daniel Lohse wrote: > I don't get it, I'm using the functionality to add new columns or > change existing column definitions in the projects schema.yml inside > my projects successfully! But maybe you meant something else and it's > me who doesn't get it? I am tal

Re: [symfony-users] sfDoctrineGuard and behaviors

2009-12-30 Thread Daniel Lohse
Sorry, forgot to add to my reply that you'll have to use sf1.3 for all of this to work. Cheers, Dani Sent from my iPhone On Dec 30, 2009, at 5:10 PM, Lukas Kahwe Smith wrote: > > On 30.12.2009, at 13:00, Jonathan Wage wrote: > >> You can't do it via the schema, but at any point during boot

Re: [symfony-users] sfDoctrineGuard and behaviors

2009-12-30 Thread Daniel Lohse
I don't get it, I'm using the functionality to add new columns or change existing column definitions in the projects schema.yml inside my projects successfully! But maybe you meant something else and it's me who doesn't get it? Cheers, Daniel Sent from my iPhone On Dec 30, 2009, at 5:10 PM

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-30 Thread gino pilotino
I use it like the following: public function executeFooList(sfWebRequest $request) { $query = Doctrine::getTable('Foo')->createQuery(); $filter_values = $request->getParameter('foo_filters'); $this->form = new FooFormFilter($filter_values); // filters default values if exist $thi

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2009-12-30 Thread gino pilotino
is this the _latest_ sfFormExtraPlugin ? On 30 Dic, 13:51, axel at wrote: > no one here with the same problem? any ideas? > thx > > On 29 Dez., 13:58, axel at wrote: > > > after upgrading to symonfy 1.3 and sfFormExtraPlugin  1.1.1 the > > "format" option is no longer supported by sfWidgetFormJQ

[symfony-users] Re: Updating data with Doctrine Migations

2009-12-30 Thread Dave
I am able to get the data migrated, but it is step 3 that I am trying to find the most correct but direct method (using Doctrine migrations). The issue with the example at http://www.doctrine-project.org/documentation/cookbook/1_0/en/symfony-and-doctrine-migrations is that it requires the models t

Re: [symfony-users] Re: The user profile class "sfGuardUserProfile" does not exist.

2009-12-30 Thread Sorom Uzomah
Hi Zeek, I'm using a windows system, xp. not linux. From: Zeek To: symfony users Sent: Wed, December 30, 2009 12:16:28 AM Subject: [symfony-users] Re: The user profile class "sfGuardUserProfile" does not exist. > Thanks for your response. In my lib/model I

Re: [symfony-users] sfDoctrineGuard and behaviors

2009-12-30 Thread Lukas Kahwe Smith
On 30.12.2009, at 13:00, Jonathan Wage wrote: > You can't do it via the schema, but at any point during bootstrap you can > retrieve the table instance of a model and add/change things with it. Or you > can override the setup method and do it there like you said. ok .. thats a pitty. i also st

Re: [symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread DEEPAK BHATIA
Try this $m = 1; foreach ($this->getOption('param') as $i) { $temp = 'test'.$m; $temp1 = 'temp'; $m = $m + 1; $this->widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' => $temp, 'id' =>$temp1)); } On Wed, Dec 30, 2009 at 7:19 PM, dziobacz wrote: >

Re: [symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread DEEPAK BHATIA
I guess this holds for radiobutton and not checkboxAre you want to it for checkbox ? Do you want to select one checkbox at a time ? On Wed, Dec 30, 2009 at 7:09 PM, dziobacz wrote: > Now they have different names but they should have the same names and > different ID: > > > > > > On 30 G

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-30 Thread tirengarfio
By my self: buildQuery(). Javi On Dec 29, 1:53 pm, tirengarfio wrote: > In the first link i pasted in my post before there is this code: > > public function executeFiltrar(sfWebRequest $request) > { >   $this->filtro = new ClienteFormFilter(); >   // Build a criteria object withe the value of th

Re: [symfony-users] change name of checkbox without change id

2009-12-30 Thread Gábor Fási
Why don't you use sfWidgetFormChoice with expanded = true and multiple = true? http://www.symfony-project.org/forms/1_2/en/A-Widgets#chapter_a_sub_choice_representations On Wed, Dec 30, 2009 at 08:01, dziobacz wrote: > Is it possible to change name widget ? I am doing that: > > foreach ($this->ge

[symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread dziobacz
ok thx - now is ok - only 1 thing: not: $temp = 'test'.$m; but: $temp = 'test'; :) On 30 Gru, 14:42, DEEPAK BHATIA wrote: > Try this > $m = 1; > foreach ($this->getOption('param') as $i) > { >         $temp = 'test'.$m; >         $temp1 = 'temp'.$m; >         $m = $m + 1; >          $this->w

[symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread dziobacz
heh - again wrong :) On 30 Gru, 14:42, DEEPAK BHATIA wrote: > Try this > $m = 1; > foreach ($this->getOption('param') as $i) > { >         $temp = 'test'.$m; >         $temp1 = 'temp'.$m; >         $m = $m + 1; >          $this->widgetSchema['comment'.$i['id']] = new >   sfWidgetFormInput

Re: [symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread DEEPAK BHATIA
Try this $m = 1; foreach ($this->getOption('param') as $i) { $temp = 'test'.$m; $temp1 = 'temp'.$m; $m = $m + 1; $this->widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' => $temp, 'id' => $temp1)); } On Wed, Dec 30, 2009

[symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread dziobacz
Now they have different names but they should have the same names and different ID: On 30 Gru, 14:34, DEEPAK BHATIA wrote: > Try this > $m = 1; > foreach ($this->getOption('param') as $i) > { >        $temp = 'test'.$m; >        $m = $m + 1; >         $this->widgetSchema['comment'.$i['id'

Re: [symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread DEEPAK BHATIA
Try this $m = 1; foreach ($this->getOption('param') as $i) { $temp = 'test'.$m; $m = $m + 1; $this->widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' => $temp)); } On Wed, Dec 30, 2009 at 6:43 PM, dziobacz wrote: > I still have:

[symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread dziobacz
I still have: So I can't do that what I want in Symfony forms and I must use normal forms ? :O On 30 Gru, 08:59, DEEPAK BHATIA wrote: > Try this > > foreach ($this->getOption('param') as $i) > { >       $temp = 'test'.$i; >        $this->widgetSchema['comment'.$i['id']] = new > sfWidgetF

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2009-12-30 Thread axel at
no one here with the same problem? any ideas? thx On 29 Dez., 13:58, axel at wrote: > after upgrading to symonfy 1.3 and sfFormExtraPlugin  1.1.1 the > "format" option is no longer supported by sfWidgetFormJQuery > >     $this->setWidgets(array( >       'from_date'    => new sfWidgetFormJQueryDat

[symfony-users] inconsistent line ending style - symfony 1.4.1

2009-12-30 Thread axel at
after upgrading to symfony 1.4.1 under windows (downloaded zip) doctrine:build-model generates Base* files with mixed line endings: '\n' and '\r\n' a svn commit doesn't work for those files "svn: Inconsistent line ending style" -- You received this message because you are subscribed to the Google

Re: [symfony-users] sfDoctrineGuard and behaviors

2009-12-30 Thread Jonathan Wage
You can't do it via the schema, but at any point during bootstrap you can retrieve the table instance of a model and add/change things with it. Or you can override the setup method and do it there like you said. - Jon On Wed, Dec 30, 2009 at 6:53 AM, Lukas Kahwe Smith wrote: > Ahoi, > > I am won

[symfony-users] sfDoctrineGuard and behaviors

2009-12-30 Thread Lukas Kahwe Smith
Ahoi, I am wondering if there is some way to add behaviors (like SoftDelete and Blameable) to the sfGuardUser model via the schema.yml. I can add them ovbiously by customizing the sfGuardUser model class and adding the behaviors inside the setUp() method, but I would rather manage this via the

[symfony-users] Re: sfWidgetFormInputFileEditable no updating the file when edit

2009-12-30 Thread ilcaduceo
Thanks, for delete now it works. But for update? How can I do? On 29 Dic, 20:06, Alexandru-Emil Lupu wrote: > Sorry. > That has to be in your model class > > Alecs > > sent via htc magic > > On Dec 29, 2009 9:05 PM, "Alexandru-Emil Lupu" wrote: > > Override your delete method to: > > Public func

Re: [symfony-users] Error message format

2009-12-30 Thread Alexandru-Emil Lupu
in my Form class object i ave added : public function getErrors($v = '') { foreach ($this->getErrorSchema() as $field=>$error ) { foreach ($error->getErrors() as $currentError) { $v .= ''.sprintf("In the "%s" tab you have an error: %s", $field , $currentError->getMessage

Re: [symfony-users] Error message format

2009-12-30 Thread Alexandru-Emil Lupu
I have done something like that. I will post my solution later today, as i haven't yet start my computer Alecs sent via htc magic On Dec 30, 2009 1:37 AM, "Sid Bachtiar" wrote: Hi all, I embedded a form inside another form, and I try to print errors (of all the forms combined) like this in the

[symfony-users] sympal plugin install error

2009-12-30 Thread Pa1
Hi, I've installed sympal plugin on windows using wamp & cygwin. I tried to install sympal plugins through CLI command below. (symfony 1.4) $php symfony sympal:install Blog When issued this following error came. Fatal error: Call to member function getRootDir() on a non-object in $Project_Home

Re: [symfony-users] Re: How to combine Sympal with a regular Symfony app?

2009-12-30 Thread Pa1
Hi, I've installed sympal plugin on windows using wamp & cygwin. I tried to install sympal plugins through CLI command below. (symfony 1.4) $php symfony sympal:install Blog When issued this following error came. Fatal error: Call to member function getRootDir() on a non-object in $Project_Home