[symfony-users] Problems with a select to change the language (cookies)

2010-07-28 Thread Javier Garcia
Hi I have followed the steps below to add a select to change the language of my app. http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19#chapter_19_language_switching It works OK for the first time I change the language, but the next time I try to change it I need to delete the

Re: [symfony-users] Re: Sluggable behaviour: field called slug is not created

2010-07-28 Thread Javier Garcia
Thanks, but it didn't work. On 07/28/2010 09:20 PM, John Kary wrote: This probably won't work, but try explicitly defining a different field name for the slug using the name option: Usuario: actAs: Sluggable: unique: true fields: [nombre_apellidos]

[symfony-users] Re: sfDoctrineGuardPlugin doesn't redirect to the referrer page

2010-07-28 Thread Javier Garcia
, 2010 11:15 AM, Javier Garcia tirengar...@gmail.com wrote:  Hi, I have just installed sfDGP and activated the security on my web app so when i write an URL the authentication form appears. The problem: after logging the web app is not redirected to the referrer URL but to the root URL

Re: [symfony-users] Re: sfDoctrineGuardPlugin doesn't redirect to the referrer page

2010-07-29 Thread Javier Garcia
On 07/29/2010 12:19 AM, Gustavo Adrian wrote: Did you set the signin redirect url in file app.yml? |all: sf_guard_plugin: success_signin_url: @my_route?param=value # the plugin use the referer as default success_signout_url: module/action # the plugin use the

Re: [symfony-users] Re: Problems with a select to change the language (cookies)

2010-07-30 Thread Javier Garcia
As I say in my first post, the second time I try to change the language doesn't work if I don't delete the cookies. These are my steps: - Load the page - Change the language OK. - I try to change the language again but it doesn't work. - I delete the cookies. - I try to change the

Re: [symfony-users] Re: Problems with a select to change the language (cookies)

2010-07-30 Thread Javier Garcia
: $this-options['default_culture'])); So the culture of the user will be decided by the following order: 1. sf_culture parameter from url 2. culture value in session 3. default value set in setting.xml Hope that will help. travis On Fri, Jul 30, 2010 at 6:11 PM, Javier Garcia tirengar

[symfony-users] Re: Sluggable behaviour: field called slug is not created

2010-07-30 Thread Javier Garcia
I created this ticket: http://trac.symfony-project.org/ticket/8922#preview Javi On Jul 28, 10:06 pm, Javier Garcia tirengar...@gmail.com wrote:   Thanks, but it didn't work. On 07/28/2010 09:20 PM, John Kary wrote: This probably won't work, but try explicitly defining a different field

Re: [symfony-users] Re: Sluggable behaviour: field called slug is not created

2010-08-02 Thread Javier Garcia
To create a profile schema that inherits from the sfGuardUser. Anyway i have created a new profile schema in a way that doesn't use inheritance. On 07/31/2010 05:35 PM, Tom Ptacnik wrote: Maybe your problem is a bug, but. Why do you want to use a simple inheritance. I don't think that

[symfony-users] Error with include_once()

2010-08-02 Thread Javier Garcia
Hi, after installing sfDoctrineApplyPlugin-1.1.1, extracting Zend at lib/vendor/Zend, executing sfApply/apply and submitting the form that appears i get this errror: *Quote:* Warning: include_once(Zend/Loader/Autoloader.php) [function.include-once]: failed to open stream: No such file

[symfony-users] Re: Error with include_once()

2010-08-03 Thread Javier Garcia
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/17#chapter_17_installing_and_configuring_the_zend_framework On Aug 2, 7:47 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, after installing sfDoctrineApplyPlugin-1.1.1, extracting Zend at lib/vendor/Zend, executing sfApply/apply

[symfony-users] sfDoctrineApplyPlugin-1.1.1: trying to give a default value to a sfApplyApplyForm field.

2010-08-04 Thread Javier Garcia
Hi, Im trying to give a default value to sfApplyApplyForm, so at the end of the configure method i add this: $this-setDefault('username', 'John Smith'); But when I render the form the default value doesn't appear.. Any idea? Javi -- If you want to report a vulnerability issue on symfony,

[symfony-users] Updating a plugin

2010-08-06 Thread Javier Garcia
Hi, when i try to update sfDoctrineGuardPlugin through plugin:upgrade i get this: pluginupgrading plugin sfDoctrineGuardPlugin sfSymfonyPluginManager Plugin is already installed I expected something like You have the latest version or Plugin updated.. Is the updating feature OK ?

[symfony-users] sfDoctrineGuardPlugin - 'email_address' and sfDoctrineApplyPlugin - 'email'

2010-08-11 Thread Javier Garcia
Hi, sfDoctrineGuardPlugin schema uses the field 'email_address' to login users. sfDoctrineApplyPlugin uses the field 'email' to register users. How do you treat that? Do you sinchronize the values of both fields? Javi -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Trying to create a patch. What should be my first step(s) ?

2010-08-15 Thread Javier Garcia
Hi, i created this ticked some days ago. http://trac.symfony-project.org/ticket/8922#preview I'm interested in creating a patch (if possible). I dont have experience debugging (just using var_dump). What should be my first step(s) ? Javi Ubuntu 8.04 -- If you want to report a

Re: [symfony-users] Re: trying to make a relation with sfGuardUser and got error

2010-08-17 Thread Javier Garcia
Could paste the fixture? On 08/17/2010 12:50 PM, RusAlex wrote: No im sorry i have mistake in pasting. I have a correct relations RankDomain: columns: name: { type: string(255), notnull: true, unique: true } user_id: { type: integer, notnull:true } relations: sfGuardUser:

[symfony-users] Trying to replace the default 'Required' message

2010-08-24 Thread Javier Garcia
Hi, im trying to replace the default 'Required' message in this validator: $this-setValidator('email', new sfValidatorAnd(array( new sfValidatorEmail(array('required' = true, 'trim' = true)), new sfValidatorString(array('required' = true, 'max_length' = 80)), new

Re: [symfony-users] Trying to replace the default 'Required' message

2010-08-24 Thread Javier Garcia
Sorry, could you paste the entire validator? I dont understand.. On 08/24/2010 08:47 AM, Michał Piotrowski wrote: Eh, sorry, 1 array parameters array('required' = true) 2 array messages array('required' = 'Pole wymagane.') 'required' = true, 'invalid' = 'An account with that

[symfony-users] The form empty values are not translated

2010-08-24 Thread Javier Garcia
Hi, I have a select to change the language of my forms and i have this widget: $this-setWidget('fecha_nac', new sfWidgetFormI18nDate(array('culture' = 'es_ES', 'years' = array_combine($years, $years),

[symfony-users] Two questions about sfDoctrineApplyPlugin

2010-08-24 Thread Javier Garcia
Hi, I have found in sfDoctrineApplyPlugin a template called applyAfter.php that shows a message like You have registered ok It is called from the apply action this way return 'After'; when the apply form is valid. What kind of template is that? I never saw that way (return 'After';)

Re: [symfony-users] Re: Trying to replace the default 'Required' message

2010-08-24 Thread Javier Garcia
I tried this: $this-setValidator('email', new sfValidatorAnd(array( new sfValidatorEmail(array('required' = true, 'trim' = true)), new sfValidatorString(array('required' = true, 'max_length' = 80), array('required' = 'THIS FIELD IS REQUIRED')), new

Re: [symfony-users] Re: Trying to replace the default 'Required' message

2010-08-24 Thread Javier Garcia
( 'required', 'My required message' ); On Tue, Aug 24, 2010 at 1:53 PM, Javier Garcia tirengar...@gmail.com mailto:tirengar...@gmail.com wrote: I tried this: $this-setValidator('email', new sfValidatorAnd(array( new sfValidatorEmail(array('required

[symfony-users] Re: Two questions about sfDoctrineApplyPlugin

2010-08-25 Thread Javier Garcia
No idea? On Aug 24, 3:08 pm, Javier Garcia tirengar...@gmail.com wrote:   Hi, I have found in sfDoctrineApplyPlugin a template called applyAfter.php that shows a message like You have registered ok It is called from the apply action this way return 'After'; when the apply form is valid

[symfony-users] Re: Two questions about sfDoctrineApplyPlugin

2010-08-25 Thread Javier Garcia
Well, when i say As I action in the same in the both pages I mean as the action is the same in both pages. On Aug 25, 2:19 pm, Javier Garcia tirengar...@gmail.com wrote: No idea? On Aug 24, 3:08 pm, Javier Garcia tirengar...@gmail.com wrote:   Hi, I have found in sfDoctrineApplyPlugin

[symfony-users] Re: Trying to replace the default 'Required' message

2010-08-26 Thread Javier Garcia
Thanks!, i would swear i tried it.. On Aug 26, 12:53 am, Michał Piotrowski mkkp...@gmail.com wrote: 2010/8/24 Javier Garcia tirengar...@gmail.com:  Sorry, could you paste the entire validator? I dont understand..     $this-validatorSchema['email_address'] = new sfValidatorAnd(array

[symfony-users] How to translate a text that contains p/p ?

2010-08-27 Thread Javier Garcia
Hi, i want to translate this below: ?php echo __(EOM p For security reasons... /p EOM ) ? So i create this translation unit: trans-unit sourceFor security reasons.../source targetPor razones de seguridad.../target /trans-unit The problem: it is not translated less than i remove the p/p

[symfony-users] Trying to set sfGuardUser objects after applying

2010-08-28 Thread Javier Garcia
Hi, i have installed sfDoctrineGuardPlugin and sfDoctrineApplyPlugin. When a user is register through sfApply/apply i would like to save the value of the field 'email' of that apply form in the sfGuardUser 'email_address' field. So I added this in executeApply:

[symfony-users] How to setup magento and symfony?

2010-08-28 Thread Javier Garcia
Hi, just that. -- Javi Ubuntu 8.04. sf 1.4 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to

[symfony-users] Trying to call an object method.

2010-08-30 Thread Javier Garcia
Hi, I have created an object method called getContenidoParcial(). When i call it, i get the error Unknown record property / related component contenido_parcial on Mensaje I created the method I say inside the Mensaje class this way: class Mensaje extends BaseMensaje { public function

[symfony-users] Re: How to translate the layout texts?

2010-09-02 Thread Javier Garcia
Sorry, my fault. On Sep 2, 11:54 am, Javier Garcia tirengar...@gmail.com wrote:   Hi, i have added something like this below in the layout: ?php echo __('foo'); ? I have added ?php use_helper('I18N') ? in the top of the layout code, but it doesn't translate it. No problem translating

Re: [symfony-users] Problems after adding standard_helpers: [I18N] in settings.yml

2010-09-02 Thread Javier Garcia
Thanks, so maybe when i add that line I'm _overwriting_ a configuration by default... Don't you think it would be better an _adding_ way ? In that way it would not be necessary adding Partial, etc...when you add I18N. On 09/02/2010 12:20 PM, Gábor Fási wrote: Add the Partial helper to the

[symfony-users] Re: The form empty values are not translated

2010-09-02 Thread Javier Garcia
No idea? On Aug 24, 1:46 pm, Javier Garcia tirengar...@gmail.com wrote:   Hi, I have a select to change the language of my forms and i have this widget: $this-setWidget('fecha_nac', new sfWidgetFormI18nDate(array('culture' = 'es_ES

[symfony-users] Any way to retrieve from the layout to the name of the template of the action?

2010-09-07 Thread Javier Garcia
Hi, hi, any way to retrieve from the layout to the name of the template of the action? -- Javi Ubuntu 10.04, sf 1.4 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the

[symfony-users] Question about a propel query

2010-10-04 Thread Javier GARCIA
Hi, I have this query inside a method: public static function pincopalla(){ $con = Propel::getConnection(SediI18nPeer::DATABASE_NAME); $sql = select * from sedii18n where culture = :country UNION select * from sedii18n where culture :country;

[symfony-users] Problem trying to do propel:build-all-load

2010-10-05 Thread Javier Garcia
Hi, i have just installed symfony, created a propel project (--orm=propel) and an frontend app. After doing propel:build-all-load i get several error messages: PHP Warning: Invalid argument supplied for foreach() in /opt/lampp/

[symfony-users] Re: Problems trying to go the previous element of a group of elements retrieved using a propel criteria.

2010-10-07 Thread Javier Garcia
Hi Gareth, Im not using foreach(), jut i'm trying to use just prev() method. Javier On Oct 7, 11:43 am, Gareth McCumskey gmccums...@gmail.com wrote: I assume that $Sedi18ns is a result from a doSelect call? If so, this means that items are stored in an array. Therefore in your TEMPLATE

[symfony-users] Starting with propel schemas

2010-10-22 Thread Javier Garcia
Hi, i have this propel schema: comentario: id: author: varchar(255) content: longvarchar created_at: when i do build-all-load the classes (model, form, filter) are not created. But if i change add the _attributes key like this: comentario: _attributes: { phpName: Comment }

[symfony-users] Re: Question about i18nTable in Jobeet

2010-10-22 Thread Javier Garcia
No idea? On Oct 19, 5:41 pm, Javier Garci tirengar...@gmail.com wrote:   Hi, in Jobeet there is this part below of the schema: jobeet_category:    _attributes:  { isI18N: true, i18nTable: jobeet_category_i18n }    id:           ~ jobeet_category_i18n:    id:           { type: integer,

[symfony-users] Using generator.yml, is there any way to hide the fields of the i18n forms in the admin?

2010-10-25 Thread Javier Garcia
Hi, using generator.yml, is there any way to hide the fields of the i18n forms in the admin? Javi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony

[symfony-users] Re: Using generator.yml, is there any way to hide the fields of the i18n forms in the admin?

2010-10-26 Thread Javier Garcia
well, maybe the question is: using generator.yml, is there any way to hide the fields of the i18n table forms in the admin? sf 1.4/propel On Oct 25, 9:50 am, Javier Garcia tirengar...@gmail.com wrote: Hi, using generator.yml, is there any way to hide the fields of the i18n forms

[symfony-users] Trying to manage the credentials of the actions

2010-11-03 Thread Javier Garcia
Hi, we want to manage the credentials of the actions of the backend from the backend. How to get the list of the actions of an app? After that we could show the credential of each one through getCredential(). 2nd question: i found the function to get the credential of an action

[symfony-users] Trying to build and load

2010-11-04 Thread Javier Garcia
Hi, i have just created a new project and this models and the fixtures below: culture: id: ~ code: { type: CHAR, size: 6, default: 'it', required: true } text: { type: VARCHAR, size: 50, default: 'italiano', required: true } folder_prod:{ type:

[symfony-users] Just trying to build and load

2010-11-04 Thread Javier Garcia
Hi, i have just created a new project and this models and the fixtures below: sediOK: id: ~ culture_id: { type: integer, required: true, foreignTable: culture, foreignReference: id } nations_id: { type: integer, required: true,

[symfony-users] clean-model-files for Propel?

2010-11-05 Thread Javier Garcia
Hi, when i try build-all-load i'm getting errors about models that doesn't exist any more in my schema. I know in doctrine i can use clean-model-files but in propel? Javier -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Credentials for an action in the backend

2010-11-10 Thread Javier Garcia
Hi, I have this in the generator.yml of a module: config: actions: _new: { credentials: [user] }. and I've overwriten the action new i mention in the generator.yml this way: public function executeNew(sfWebRequest $request) { var_dump($this-getCredential()); $this-form =

[symfony-users] Re: Credentials for an action in the backend

2010-11-11 Thread Javier Garcia
sf 1.4 On Nov 11, 1:49 am, Martin Ibarra Cervantes ibarra.cervan...@gmail.com wrote: You add credentials on your backend when your user has login. On Wed, Nov 10, 2010 at 8:01 AM, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this in the generator.yml of a module: config

[symfony-users] When i write a task php symfony .. I only get the first lines of config/ProjectConfiguration.class.php

2010-11-12 Thread Javier Garcia
Hi, I have done a svn co for a repository that contains a symfony app. Then i went to the root of the project and when i write a task php symfony .. I only get the first lines of config/ ProjectConfiguration.class.php ini_set('display_errors', 1); ini_set('session.save_handler','files');

[symfony-users] How to disable the modules/action routes?

2010-11-17 Thread Javier Garcia
Hi, how to disable the module/action routes? I mean i just want the short routes work, for example www.mysite.com/login will work, but www.mysite.com/sfGuardAuth/signin will not work. Javi -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Setting the object of the form before saving

2010-11-19 Thread Javier Garcia
Hi, i want a form in my app uses AJAX, so as my first-first-first step (i dont know exactly if it finally will really serve me..) I'm just trying to modificate the update action this way: public function executeUpdate(sfWebRequest $request) {

[symfony-users] Re: clean-model-files for Propel?

2010-11-20 Thread Javier Garcia
I think there isn't anyone..so.. from what folder should i remove the files? On Nov 5, 12:51 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, when i try build-all-load i'm getting errors about models that doesn't exist any more in my schema. I know in doctrine i can use clean-model-files

[symfony-users] Manage the credentials of the actions and modules through a form

2010-11-25 Thread Javier Garcia
Hi, as you know you can edit the credentials of an action or a module going to file view.yml of the module and editing them. Our boss doesn't want to go to the files to edit the credentials in each view.yml file, but wants to have a form where he can select the modules and the actions of the

[symfony-users] Question about accessing a child class from a parent class

2010-12-06 Thread Javier Garcia
Hi, i have this schema: shop_products: _attributes: { phpName: ShopProduct } products_id: { phpName: Id, type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true } products_quantity: { phpName: Quantity, type: INTEGER, size: '4', required: true }

[symfony-users] Trying to use my own method to show a list in the backend: undefined offset notice

2010-12-06 Thread Javier Garcia
Hi, i'm trying to use my own method to show a list in the backend: class ShopOrderPeer extends BaseShopOrderPeer { public static function getOrdini() { $con = Propel::getConnection(); $sql = select customers_name, value, date_purchased, orders_status from shop_orders

[symfony-users] Re: Trying to use my own method to show a list in the backend: undefined offset notice

2010-12-06 Thread Javier Garcia
Workaround: instead of select customers_name, value, date_purchased, orders_status from shop_orders LEFT JOIN ..., select * LEFT JOIN ... On 6 Dic, 18:39, Javier Garcia tirengar...@gmail.com wrote: Hi, i'm trying to use my own method to show a list in the backend: class ShopOrderPeer extends

[symfony-users] The error is not showed in the backend

2010-12-06 Thread Javier Garcia
Hi, I have these models: user: name: { type: varchar(255) } age: { type: integer } article: title:{ type: varchar(255) } content: { type: varchar(255) } user_id: { type: varchar(255) } I have this generator.yml list: display:

[symfony-users] Trying to add a field from another model in a backend list.

2010-12-07 Thread Javier Garcia
Hi, I have created an inner join criteria to show a list of elements in the backend. This are my models: user: name: { type: varchar(255) } age: { type: integer } article: title:{ type: varchar(255) } content: { type: varchar(255) }

[symfony-users] Error when trying to declare a variable as a parameter. No problem when I declare it inside the function.

2010-12-07 Thread Javier Garcia
Hi, I have this static function: public static function getOrdini($sort_order = 4) { $con = Propel::getConnection(); $sql = select * from shop_orders LEFT JOIN shop_orders_total ON shop_orders.orders_id = shop_orders_total.orders_id AND

[symfony-users] Re: 500 internal server error

2010-12-07 Thread Javier Garcia
Or look at the log of the server (apache2 /var/log/apache2). On 7 Dic, 10:03, Justen Doherty phpc...@gmail.com wrote: switch to dev mode by adding _dev.php to your URL - e.g. frontend_dev.php (dev mode) frontend.php (production mode) On Tue, Dec 7, 2010 at 4:37 AM, jyoti jyt...@gmail.com

[symfony-users] Trying to create a new action in a backend module: Action module/show does not exist.

2010-12-07 Thread Javier Garcia
Hi, i have created a new action called executeDetagli() in backend/modules/ ordini/actions/actions.class.php. When I try to go to backend_dev.php/ordini/detagli It gives me this error: 404 | Not Found | sfError404Exception Action ordini/show does not exist. stack trace * at () in

[symfony-users] Re: Trying to create a new action in a backend module: Action module/show does not exist.

2010-12-07 Thread Javier Garcia
I have realized that it works perfect when i add / at the end of the url, but why??? I don't have any problem to go to the New action just using backend_dev.php/ordini/new. On 7 Dic, 17:50, Javier Garcia tirengar...@gmail.com wrote: Hi, i have created a new action called executeDetagli

[symfony-users] Re: Manage the credentials of the actions and modules through a form

2010-12-12 Thread Javier Garcia
, Javier Garcia tirengar...@gmail.com wrote: Hi, as you know you can edit the credentials of an action or a module going to file view.yml of the module and editing them. Ourbossdoesn't want to go to the files to edit the credentials in each view.yml file, but wants to have a form where he can

[symfony-users] Problem trying to add a new object action in a backend module

2010-12-22 Thread Javier Garcia
Hi, i have created this model: propel: shop_orders: orders_id: { phpName: Id, type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true } email: { type: VARCHAR, size: '45', required: true } Then i have generated an admin module and i have add this below to

[symfony-users] Propel criteria: undefined offset

2011-01-09 Thread Javier Garcia
Hi, i have this schema below, i have generated the classes using symfony and created a pair of objects using the form class generated. moto: marca: { type: varchar(255), required: true } matricula: { type: integer, required: true } Now i have this criteria: $c = new Criteria();

[symfony-users] Question about fixtures: the object is not defined in your data file.

2011-01-10 Thread Javier Garcia
Hi, I have this code: sfGuardUser: utente_1: username: j.gar...@esempio.com password: 123456 ?php for($i=2; $i=50; $i++): ? utente_?php echo $i?: username: utente_?php echo $i?@esempio.com password: 123456 ?php endfor ? sfGuardUserProfile: profilo_1:

[symfony-users] Save the output of a task.

2011-01-11 Thread Javier Garcia
Hi, i have a long error message when i execute a task. In order to save the output i'm writing task foo.txt. But when i open foo.txt the error messages are not there. Any idea? Any alternative? Regards Javi -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] After installing sfPropel15Plugin: error when i try to build classes

2011-01-11 Thread Javier Garcia
Hi, when i do propel:build --all-classes i get these errors below. I have followed the instructions that are in the README. sf 1.4 schemaconverting /home/javier/program...rueba1/config/schema.yml to XML schemaputting /home/javier/programazio...eba1/config/generated-schema.xml schema

[symfony-users] Re: Save the output of a task.

2011-01-11 Thread Javier Garcia
Thanks! On Jan 11, 4:58 pm, Gábor Fási maerl...@gmail.com wrote: You also need to redirect the stderr:     task foo.txt 21 this redirects it to the stdout, so it gets logged to the same file. On Tue, Jan 11, 2011 at 15:56, Javier Garcia tirengar...@gmail.com wrote: Hi, i have a long

[symfony-users] Simulating an enum type in Propel: error trying to generate form classes

2011-01-12 Thread Javier Garcia
Hi, documento: {type: varchar, sqltype: enum, size: 'F','DDT','RC','FOURTH_ELEMENT','PM','KV','VN','CMS', required: true, defaultValue: 'F', required: true} I get the next error message (always with the fourth element, I mean if i write 3 or less elements it doesn't give any error): propel

[symfony-users] Re: Simulating an enum type in Propel: error trying to generate form classes

2011-01-12 Thread Javier Garcia
Sorry I'm using sf 1.4. On Jan 12, 1:53 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, documento: {type: varchar, sqltype: enum, size: 'F','DDT','RC','FOURTH_ELEMENT','PM','KV','VN','CMS', required: true, defaultValue: 'F', required: true} I get the next error message (always

[symfony-users] How to hide the label of the object actions in the backend list?

2011-01-13 Thread Javier Garcia
Hi, how to hide the label of the object actions? I've tried these below (separately of course...) but noone of them works ok. object_actions: _delete: {label: ' '} _delete: {label: ' '} _delete: {label: false} _delete: {label: none} sf 1.4

[symfony-users] Re: After installing sfPropel15Plugin: error when i try to build classes

2011-01-13 Thread Javier Garcia
no idea? On Jan 11, 5:07 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, when i do propel:build --all-classes i get these errors below. I have followed the instructions that are in the README. sf 1.4 schema    converting /home/javier/program...rueba1/config/schema.yml to XML

[symfony-users] Column not found: 1054 Unknown column 'sf_guard_group.ID' in 'where clause'

2011-01-13 Thread Javier Garcia
Hi, i have this code: $c-addMultipleJoin(array( array(UserProceduraPeer::USER_ID, sfGuardUserProfilePeer::USER_ID ), array(UserProceduraPeer::USER_ID, sfGuardGroupPeer::ID), CRITERIA::INNER_JOIN)); but I'm getting this error:

[symfony-users] Re: After installing sfPropel15Plugin: error when i try to build classes

2011-01-17 Thread Javier Garcia
?php require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/ sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends sfProjectConfiguration { public function setup() { //$this-enablePlugins('sfPropelPlugin');

[symfony-users] Many to many relationship: complete iteration.

2011-01-17 Thread Javier Garcia
Hi, I have a many-to-many relationship between two tables. I would like to show the elements of a table with the corresponding elements of the other table. For example: user1-group2 group5 user2-group1 group3 group4 ... In an easy and smart way, of course. sf 1.4/propel

[symfony-users] Re: Many to many relationship: complete iteration.

2011-01-17 Thread Javier Garcia
I used a join and I get the objects from the exchange table, so if I iterate it I get: user1-group2 user1-group5 user2-group1 user2-group3 user2-group4 But I'm wondering how could i get the group objects from the user objects... On Jan 17, 11:04 pm, Javier Garcia tirengar...@gmail.com wrote

[symfony-users] Re: After installing sfPropel15Plugin: error when i try to build classes

2011-01-18 Thread Javier Garcia
Sorry, I was commeting/removing also this line below in config/ propel.ini: propel.behavior.default = symfony,symfony_i18n Javier On Jan 17, 10:15 pm, Gabriel Petchesi pghora...@gmail.com wrote: Check the autoloader cache, it's found in cache/. In my app is

[symfony-users] What are the URL for the pages using PropelPager ?

2011-01-20 Thread Javier Garcia
Hi, I have an action with this code: $c = new Criteria(); $c-addJoin(sfGuardUserProfilePeer::USER_ID, sfGuardUserGroupPeer::USER_ID, Criteria::INNER_JOIN); $c-add(sfGuardUserGroupPeer::GROUP_ID, 2 ); $this-pager = new PropelPager($c, 'sfGuardUserProfilePeer', 'doSelect', $page = 2, $rowsPerPage

[symfony-users] format_currency() adds an space before the number

2011-02-04 Thread Javier Garcia
Hi when i do this: var_dump(format_currency('1004.569')); I get: string ' 1.004,56' (length=10) Notice that there is a space before the 1. Any idea? sf 1.4. Javi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] Trying to send emails

2011-02-07 Thread Javier Garcia
Hi, I'm trying to send emails using this code: var_dump($this-getMailer()-composeAndSend( //this outputs '0' 'f...@example.com', 'j.gar...@jander.eu', 'Subject', 'Body' )); The factories configuration is this (I have the same configuration in my

[symfony-users] Question about sfOutputEscaperArrayDecorator

2011-02-07 Thread Javier Garcia
Hi, when i do a sfGuardUserPeer::doSelect(new Criteria()), i get an object like this: object(sfOutputEscaperArrayDecorator)[114] private 'count' = int 1 protected 'value' = array 0 = object(sfGuardUser)[108] protected 'profile' = null protected 'groups'

[symfony-users] Re: Trying to send emails

2011-02-08 Thread Javier Garcia
No idea? On Feb 7, 7:14 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm trying to send emails using this code:      var_dump($this-getMailer()-composeAndSend(   //this outputs '0'         'f...@example.com',         'j.gar...@jander.eu',         'Subject',         'Body

[symfony-users] Re: Trying to send emails

2011-02-08 Thread Javier Garcia
Hi, my problem: no email is sent. On Feb 8, 5:01 pm, stof s...@notk.org wrote: On Tue, 8 Feb 2011 06:21:36 -0800 (PST), Javier Garcia tirengar...@gmail.com wrote: No idea? Well, what is your problem exactly ? You don't ask any question in your previous mail. Thus, the logs say the mail

[symfony-users] Is sfWidgetFormPropelChoiceMany class deprecated in sf 1.4?

2011-02-21 Thread Javier Garcia
Hi, is sfWidgetFormPropelChoiceMany class deprecated? why? what class should i use? Javier -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users

[symfony-users] Is there any way to set post parameters?

2011-02-23 Thread Javier Garcia
Hi, is there any way to set post parameters? When i submit a form I would like to set a variable (that I give a value dinamically) as a post parameter. Is that possible? sf 1.4 Javi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-02-24 Thread Javier Garcia
Hi, i have this widget : $this-widgetSchema['user'] = new sfWidgetFormChoice(array( 'choices' = array(), 'renderer_class' = 'sfWidgetFormJQueryAutocompleter', 'renderer_options' = array('url' = 'autocomplete', 'config' = '{ multiple:true }'), )); And this

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-02-26 Thread Javier Garcia
it's a bug I think.. Javier On Feb 24, 4:27 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, i have this widget :     $this-widgetSchema['user']  = new sfWidgetFormChoice(array(       'choices'          = array(),       'renderer_class'   = 'sfWidgetFormJQueryAutocompleter

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-02-28 Thread Javier Garcia
thishttp://www.symfony-project.org/plugins/sfDoctrineFBAutocompletePlugin On Sat, Feb 26, 2011 at 11:23, Javier Garcia tirengar...@gmail.com wrote: Ok, now I understand how this widget works..When you create this kind of widget, it actually creates two fields: autocomplete_my_field

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-01 Thread Javier Garcia
I found this snippet maybe will be usefull: http://snippets.symfony-project.org/snippets/from/antitoxic/order_by/popularity On Feb 28, 10:40 am, Javier Garcia tirengar...@gmail.com wrote: Alex, what do you mean with It's maybe more along the lines of a feature that would be nice to have

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-01 Thread Javier Garcia
I just wanted to add taht in that snippet tags_list is not a casual name, is the name of the field generated by symfony that shows the elements of the other side of the relation. In that way you will overwrite it. I'm missing a comment like that in the snippet. On Mar 1, 5:20 pm, Javier Garcia

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-01 Thread Javier Garcia
Hi again.. I'm following the tutorial/snippet I mentioned before. I have followed it, but when the form is showed, it shows the word Array inside the autocompletion field. Any idea? On Mar 1, 5:22 pm, Javier Garcia tirengar...@gmail.com wrote: I just wanted to add taht in that snippet

[symfony-users] Remember: how to create a Doctrine project in symfony 1.2?

2011-03-02 Thread Javier Garcia
Hi, someone can remember how to create a Doctrine project in symfony 1.2? Regards Javi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group.

[symfony-users] Re: Remember: how to create a Doctrine project in symfony 1.2?

2011-03-02 Thread Javier Garcia
nothing to do with it, when you have the documentation. public function setup() {   $this-enablePlugins(array('sfDoctrinePlugin'));   $this-disablePlugins(array('sfPropelPlugin')); } On Wed, Mar 2, 2011 at 10:29, Javier Garcia tirengar...@gmail.com wrote: Hi, someone can remember how

[symfony-users] Re: Remember: how to create a Doctrine project in symfony 1.2?

2011-03-02 Thread Javier Garcia
Sorry..I was in a hurry.. On Mar 2, 2:36 pm, Gareth McCumskey gmccums...@gmail.com wrote: What do you need to remember? Go read! On 02/03/2011 11:29, Javier Garcia wrote: Hi, someone can remember how to create a Doctrine project in symfony 1.2? Regards Javi -- If you want

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-07 Thread Javier Garcia
http://trac.symfony-project.org/ticket/8171 what to do when someone has assigned a ticket since 1 year and it has not been resolved or deleted? On Mar 1, 7:27 pm, Javier Garcia tirengar...@gmail.com wrote: Hi again.. I'm following the tutorial/snippet I mentioned before. I have followed

[symfony-users] Trying to unset a field before saving it, using offsetUnset()

2011-03-07 Thread Javier Garcia
Hi, I'm trying to unset a field before saving it, exactly in the executeCreate() function generated by sf. I'm using this: $this-configuration-getForm()-getWidgetSchema()- offsetUnset('clienti'); var_dump($this-configuration-getForm()-getWidgetSchema()); But after that the field clients

[symfony-users] Re: Trying to unset a field before saving it, using offsetUnset()

2011-03-07 Thread Javier Garcia
Well I mean $this-configuration-getForm()-getWidgetSchema()- offsetUnset('clients'); On Mar 7, 7:40 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm trying to unset a field before saving it, exactly in the executeCreate() function generated by sf. I'm using

[symfony-users] Trying to set a field in executeUpdate()

2011-03-09 Thread Javier Garcia
Hi, I have just generated a module and I'm trying to set the value of a field before saving it this way: public function executeUpdate(sfWebRequest $request) { $this-process = $this-getRoute()-getObject(); $this-form = $this-configuration-getForm($this-process);

[symfony-users] 1:m and m:m relations: give some information about the associated elements in the backend list.

2011-03-10 Thread Javier Garcia
Hi, I have created a module using the sfGuardUser model. I'd like to show in the list of the backend of that module, the groups that a user belongs to. I know the backend is not initially prepared for that, but is there any plugin or any other way to do easily? sf 1.4/propel 1.6 Javier -- If

[symfony-users] 1:1 relation, is there any way to show the colums of the daughter model just writing in the generator?

2011-03-11 Thread Javier Garcia
Hi, for example I have created with symfony a module based on sfGuardUser. Now, in the list of elements of that module I want to show the sfGuardUserProfile columns (name, surname..). I know i can create a query, but is there any way just writing in the generator? sf 1.4/propel 1.6 Javi --

[symfony-users] Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Javier Garcia
Hi, I have this file apps/backend/config/view.yml. default: http_metas: content-type: text/html metas: #title:symfony project #description: symfony project #keywords: symfony, project #language: en #robots: index, follow stylesheets:

[symfony-users] Re: Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Javier Garcia
of your view.ymls contain a [-background] directive? On Mon, Mar 14, 2011 at 12:03, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this file apps/backend/config/view.yml. default:  http_metas:    content-type: text/html  metas:    #title:        symfony project

<    1   2   3   4   >