[symfony-users] the group parameter in the validators

2007-03-20 Thread anakreon
Hello all. I have a case where I use the group parameter, but I'm doing something wrong. I have 5 fields where in the first 4 the user provides int values and in the 5'th it enters a string. The user is not required to provide values for this fields but if a value is provided for any of the firs

[symfony-users] Re: the group parameter in the validators

2007-03-20 Thread anakreon
Can someone send a sample validation yml file? I installed the sfFormValidationPlugin and errors are reported. My validation configuration has the structure: validators: validator1: . fields: . as it is described at http://www.symfony-project.com/book/trunk/10-Forms#Validation%

[symfony-users] Re: Admin generator : a boolean field set to type:plain, in edit view...

2007-04-12 Thread anakreon
I had a similar problem. The solution in my case was to set this in the generator.yml fields: isactive: {name: Is Active, type: checkbox_tag} --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group.

[symfony-users] the group option in validation rules

2007-04-23 Thread anakreon
Hello. I have a problem defining the rules for the case described below. There are 5 fields (let them be A,B,C,D,E). The requirements are 1: if A has a value, B must have a value and vice versa. 2: If C has a value, D must have a value and vice versa. 3: If A or B or C or D have a value then E mu

[symfony-users] Re: editing primary key

2007-04-23 Thread anakreon
Primary keys should not be updated. Perhaps you should change the DB schema. I would add an autoincrement PK and set the username unique. The advantage of having an int as PK is that if other tables refer to the user they need to store an int instead of a varchar. Also search and joins should be

[symfony-users] sfPokaYokePlugin javascript errors

2007-04-24 Thread anakreon
Hello. The sfPokaYokePlugin will generate a javascript error when a form element has a parent. In my case, there is a field who's name is catch_code and it's parent catchinf. The id of the element will be catchinf_catch_code and name catchinf[catch_code]. In the initialize method of Prototype.Po

[symfony-users] Re: sfI18nExtractPlugin and dictionary files

2007-07-02 Thread anakreon
I tried the plug-in and although it does not report any error messages, it does not create any files either. The command was: symfony i18n-extract --auto-save usrmngr en >> i18n extracting i18n strings for the "usrmngr" application >> i18n found "823" new i18n strings >> i18n foun

[symfony-users] Create a view only version of a form

2007-07-03 Thread anakreon
I want to create an identical page with the form of a module, except that the controls (buttons, checkboxes etc) should be replaced by a label displaying the value of the control. I think of two ways how to accomplish this and I hope for an advice from you. The first way is to create a filter pl

[symfony-users] Re: Filters and foreign keys

2007-07-04 Thread anakreon
In the generator.yml, in the filter options write: filters: [_my_filter] In the templates dir, create a file _my_filter.php and return the html for the filter. An example from one case of mine is: generator.yml list: fields: filters: [_wfd_site, ...] in the templates/_wfd_site.php ge

[symfony-users] Output an excel file from an action

2007-09-05 Thread anakreon
his->getResponse()->setContentType('application/vnd.ms-excel'); Also, the action returns sfView::NONE. The problem is that a warning is issued saying: Warning: Cannot modify header information - headers already sent by (output started at /home/anakreon/ekby_site/lib/PHPExcel/Share

[symfony-users] Re: Output an excel file from an action

2007-09-05 Thread anakreon
On Sep 5, 2:59 pm, "Tristan Rivoallan" <[EMAIL PROTECTED]> wrote: > On 9/5/07, anakreon <[EMAIL PROTECTED]> wrote: > > > (output started at /home/anakreon/ekby_site/lib/PHPExcel/Shared/OLE/ > > OLE_Root.php:254) > > what do you see at this line in

[symfony-users] Using an other theme

2007-11-28 Thread anakreon
In an admin generated module, I want to use an other theme then the default. A new theme (which is a copy of the default) is at /usr/share/php/data/symfony/generator/sfPropelAdmin/myTheme myTheme differes only in the file _edit_header.php, which is empty for the default theme. I invoked the sym

[symfony-users] Re: Using an other theme

2007-11-28 Thread anakreon
This is the generator config generator: class: sfPropelAdminGenerator param: model_class: Catchinf theme:site fields: catch_name: {name: Catchment Name} list: title:Available catchment areas

[symfony-users] Re: Using an other theme

2007-11-28 Thread anakreon
On Nov 28, 7:24 pm, "Simon Roby" <[EMAIL PROTECTED]> wrote: > Why is theme set to "site" and not "myTheme"? That is the name of the theme. I sad myTheme on order to make clear that it was my own theme and not one provided by symphony --~--~-~--~~~---~--~~ You rece

[symfony-users] Re: Using an other theme

2007-11-29 Thread anakreon
Even if i define a theme which does not exist, the pages are rendered without complains or errors. It seems that the theme parameter is ignored. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group.

[symfony-users] Setting a filter from an action

2008-02-22 Thread anakreon
I am trying to redirect the user from a page to an other where the entries shown at the second page should be filtered. Both pages are admin-generated. What I tried is: $this->redirect('inventory/list?filters[data_provider_id]=' . $this->getRequestParameter('data_provider_