[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] 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] 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

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 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

[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] 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] 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] 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

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

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: 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

[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

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

2010-07-27 Thread Javier Garcia
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. These are my steps: - I call the URL

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

2010-07-27 Thread Javier Garcia
On Jul 20, 12:00 pm, Tom Ptacnik to...@tomor.cz wrote: Maybe colision with inheritance? Try to move inheritance before actAs (only guess) Yes there is a colision with inheritance. When i remove the inheritance it works ok. I changed the position of inheritance but the field slug doesn't

[symfony-users] Re: .js is not loaded in prod enviroment

2010-07-19 Thread Javier Garcia
yes On Jul 19, 7:05 am, pghoratiu pghora...@gmail.com wrote: Did you clear the cache?     gabriel On Jul 19, 2:20 am, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm loading correctly these .js in the dev enviroment: ?php use_javascript('/sfJqueryReloadedPlugin/js/jquery-1.3.2

[symfony-users] Re: .js is not loaded in prod enviroment

2010-07-19 Thread Javier Garcia
Well I just added .js in the name of the file (jquery- ui-1.7.2.custom.min.js) and it's working. On Jul 19, 7:05 am, pghoratiu pghora...@gmail.com wrote: Did you clear the cache?     gabriel On Jul 19, 2:20 am, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm loading correctly

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

2010-07-19 Thread Javier Garcia
no idea? On Jul 17, 10:35 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this model: Usuario:    actAs:      Sluggable:        unique: true        fields:  [nombre_apellidos]        canUpdate: true    inheritance:      extends: sfGuardUser      type: simple    columns

Re: [symfony-users] manipulation a form with the eventDispatcher and form.post_configure

2010-07-18 Thread Javier Garcia
If you are interested in mark a label maybe your could be interested in this: http://www.dotmana.com/?p=432 There is another tutorial about this in a blog I can find now.. On 07/16/2010 05:54 PM, Daniel Lohse wrote: What do you mean by I don't have the form as reference? Look at the

Re: [symfony-users] manipulation a form with the eventDispatcher and form.post_configure

2010-07-18 Thread Javier Garcia
Or why don't you create a formatter for the form that adds an asterisk to all labels? On 07/16/2010 05:54 PM, Daniel Lohse wrote: What do you mean by I don't have the form as reference? Look at the ahDoctrineEasyEmbeddedRelationsPlugin and search for form.post_configure. Although the

[symfony-users] .js is not loaded in prod enviroment

2010-07-18 Thread Javier Garcia
Hi, I'm loading correctly these .js in the dev enviroment: ?php use_javascript('/sfJqueryReloadedPlugin/js/jquery-1.3.2.min.js') ? ?php use_javascript('/sfJqueryReloadedPlugin/js/plugins/jquery-ui-1.7.2.custom.min') ? but in the prod enviroment the second one is not loaded. No mention

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

2010-07-17 Thread Javier Garcia
Hi, I have this model: Usuario: actAs: Sluggable: unique: true fields: [nombre_apellidos] canUpdate: true inheritance: extends: sfGuardUser type: simple columns: username: type: string(128) notnull: false unique: true

[symfony-users] Qustion about routing

2010-07-13 Thread Javier Garcia
Hi, I have this rule in routing.yml: mensaje_nuevo: url: /mensaje/nuevo and this link in a template: echo link_to('Foo', 'mensaje/nuevo'); When i execute the action that renders the link, it gives me this error: Unable to find a matching route to generate url for params array (

[symfony-users] Re: symfony and Eclipse: I can not go to the function or class using F3.

2010-07-13 Thread Javier Garcia
/ symfony), and Build PathUse as source folder. Any idea? On Jul 12, 2:41 pm, Javier Garcia tirengar...@gmail.com wrote: Thanks! works! On 07/12/2010 01:47 PM, St�phane wrote: Right click on the folder and Build PathUse as source folder Before Printing, Think about Your Environmental

[symfony-users] Question about object routing and slugging

2010-07-13 Thread Javier Garcia
Hi, in order to not show the ID's of the members of my social network in the URL, I have created this route: perfil_miembro: url: /miembros/:nombre_apellidos class: sfDoctrineRoute options: { model: Usuario, type: object} param: { module: miembros, action: show} and added this line

Re: [symfony-users] symfony and Eclipse: I can not go to the function or class using F3.

2010-07-12 Thread Javier Garcia
On 07/11/2010 05:58 PM, Stéphane wrote: Hi, Check that your lib folders are source folders. Thanks, but how can i check that? On 07/11/2010 06:49 PM, Mariano Sola wrote: sorry for the question, but why using eclipse? I tried NB but when i wanted to go the declaration of a method, it

Re: [symfony-users] forward does not work

2010-07-12 Thread Javier Garcia
I think in dev enviroment it should show the error instead of the blank page. On 07/05/2010 11:53 PM, jogep wrote: Hi, I try to use forward in my action class after an validation back to my action in special cases. This has works in an other part of my application. $this-forward('mymodul',

Re: [symfony-users] symfony and Eclipse: I can not go to the function or class using F3.

2010-07-12 Thread Javier Garcia
Thanks! works! On 07/12/2010 01:47 PM, Stéphane wrote: Right click on the folder and Build PathUse as source folder Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Jul 12, 2010 at 1:43 PM, Javier

[symfony-users] symfony and Eclipse: I can not go to the function or class using F3.

2010-07-11 Thread Javier Garcia
Hi, Im using Eclipse (Build id: 20090920-1017) to write my symfony web app and in many times I can not go to the declaration of functions or classes (you know placing the cursor where the class or the function is called and then pressing F3). For example: I have this class: class

Re: [symfony-users] i18n: show the all translatable strings ??

2010-07-09 Thread Javier Garcia
Thanks, but in that list I'm missing the forms stuff: labels, validation errors... Is that normal? On 07/07/2010 11:07 PM, Alexandru-Emil Lupu wrote: ./symfony i18n:find frontend On Wed, Jul 7, 2010 at 9:25 PM, Javier Garcia tirengar...@gmail.com mailto:tirengar...@gmail.com wrote: Hi

[symfony-users] About customizing the form filters

2010-07-09 Thread Javier Garcia
Hi, In the frontend I have page with a list and a form filter next to it that shows all the users of social network. I would like to hide the user of the session in that list, so how can i do it? My first thought is creating a function addColumnQuery () for each field of the form, and

[symfony-users] i18n: show the all translatable strings ??

2010-07-07 Thread Javier Garcia
Hi, is there any way to show all the strings in my app that are inside the helper __(' ') ? -- Javi Ubuntu 8.04 - Symfony 1.3 -- 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

[symfony-users] Question about set/get methods of model classes

2010-07-02 Thread Javier Garcia
Hi, why the get and set methods of the model classes are created on the air, instead of generating them when the model class is created? is there any advantage? -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Question about the Front Controller

2010-07-02 Thread Javier Garcia
Hi, in the manual this is written about the Front Controller: Load and initiate the core framework classes. What does it mean exactly with load ? -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] Question about set/get methods of model classes

2010-07-02 Thread Javier Garcia
Hi, why the get and set methods of the model classes are created on the air, instead of generating them when the model class is created? is there any advantage? -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Question about set/get methods of model classes

2010-07-01 Thread Javier Garcia
Hi, why the get and set methods of the model classes are created on the air, instead of generate them when the model class is created? -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Question about a dialog form and submit errors

2010-06-16 Thread Javier Garcia
Hi, I have the link below that executes the action message/new which shows a form inside a jqueryui modal dialog. div id=myDialog /div echo jq_link_to_remote('Enviar mensaje', array( 'url' = 'mensaje/new?receptor='.$miembro-getId().'tipo=0estado=0', 'update' =

Re: [symfony-users] Re: mediatemnple Dv server symfony deployment

2010-06-11 Thread Javier Garcia
On 06/11/2010 09:56 AM, fRAnKEnSTEin wrote: Hi, Ok i have deleted that limitation, now i can load the frontend_dev.php file but all i can see is a blank page :( Any idea? cheers Clean the cache. -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on

[symfony-users] I don't see images in production in a shared server

2010-06-07 Thread Javier Garcia
Hi, I have deployed my symfony app into a shared server. The problem: for example, the images and the .css of the default page that says |ok Symfony Project Created Congratulations! You have successfully created your symfony project. Project setup successful ... | are not loaded. I

Re: [symfony-users] I don't see images in production in a shared server

2010-06-07 Thread Javier Garcia
On 06/07/2010 03:16 PM, Eno wrote: You need to setup the /sf alias in your web server configuration: Thanks Eno, but my app is in a shared host, so i can not modify the server configuration. I read this:

[symfony-users] Re: I don't see images in production in a shared server

2010-06-07 Thread Javier Garcia
Ok Eno, anyway I forgot to say that even the .css and .js from the plugins are not loaded. Is there any way to mend it or should I copy them also manually? Javi On Jun 7, 6:33 pm, Eno symb...@gmail.com wrote: On Mon, 7 Jun 2010, Javier Garcia wrote: On 06/07/2010 03:16 PM, Eno wrote

[symfony-users] Re: I don't see images in production in a shared server

2010-06-07 Thread Javier Garcia
When I say minimum I'm thinking in price :). Javi On Jun 8, 4:48 am, Eno symb...@gmail.com wrote: On Mon, 7 Jun 2010, Javier Garcia wrote: Ok Eno, anyway I forgot to say that even the .css and .js from the plugins are not loaded. Is there any way to mend it or should I copy them also

Re: [symfony-users] Re: Translation request

2010-06-06 Thread Javier Garcia
In spanish: Necesitamos programadores symfony. Javi On 06/06/2010 02:47 PM, Денис Горбачев wrote: Wow, an Indian translation! Much appreciated. French is great too, thanks :) Are there any other people knowing languages that seem cryptic to an European? Arabic, Chinese -- something like

[symfony-users] Trying to overwriting a method of a sf class

2010-06-04 Thread Javier Garcia
Hi, i want to overwrite a method of symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php. I think a good way could be writing again the method in the form class where i need that method. In that case if i need that method in other form class should i write again the new

[symfony-users] Question about jq_link_to_remote()

2010-06-04 Thread Javier Garcia
Hi, i have a template with this below to show a dialog when the link is clicked: div id=myDialog /div echo jq_link_to_remote('Enviar mensaje 2', array( 'url' = 'mensaje/new?receptor='.$miembro-getId().'tipo=0estado=0',

[symfony-users] sfWidgetFormInputFileEditable: where is the code that removes the file?

2010-06-03 Thread Javier Garcia
Hi, by default, when you replace a file using sfWidgetFormInputFileEditable, the old file is removed from your hard disk. Where is that code that removes the file?? -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] Re: sfWidgetFormInputFileEditable: where is the code that removes the file?

2010-06-03 Thread Javier Garcia
On 06/03/2010 06:45 PM, pghoratiu wrote: symfony/lib/plugins/sfDoctrinePlugin/lib/form/ sfFormDoctrine.class.php Thanks -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] Re: Question about sfWidgetFormChoice

2010-05-31 Thread Javier Garcia
On 03/05/2010 02:36 PM, Raphael Schumacher wrote: $choices =array_merge(array('' = '-'), array_combine(range(14,130), range(14,130))); That shows the select options correctly but i dont get the choosen values. I mean, if i choose for example 14, and in the action write something like

[symfony-users] Re: Question about sfDoctrineGuardPlugin and signing

2010-05-27 Thread Javier Garcia
Well, It looks like smart..I just saw it in facebook. Javi On May 27, 9:43 am, Tom Ptacnik to...@tomor.cz wrote: Why do you want to do that? On 24 kvě, 15:39, Javier Garcia tirengar...@gmail.com wrote: Hi, by default, using sfDGP, when i try to execute an action of an application

[symfony-users] Re: Trying to load a .css from sfJqueryReloadedPlugin

2010-05-27 Thread Javier Garcia
:08, Javier Garcia tirengar...@gmail.com wrote: Hi, i have this lines: ?php use_javascript('/sfJqueryReloadedPlugin/js/plugins/jquery-ui-1.7.2.custom.m­in.js')? ?php use_stylesheet('/sfJqueryReloadedPlugin/css/ui-lightness/jquery-ui-1.7.2.cu­stom.css')? The first .js is loaded

[symfony-users] Re: Question about filter forms: search for exact words

2010-05-27 Thread Javier Garcia
Hi again, this seems is working ok: public function addProvinciaColumnQuery($query, $field, $value) { $fieldName = $this-getFieldName($field); $valor = array_values($value); if (!empty($valor[0])) {

Re: [symfony-users] Re: How to check if a variable saved in sfContext is set or not?

2010-05-26 Thread Javier Garcia
There is this below in the 1.4 jobeet manual: You can even use |sfContext| as a registry and add your own objects using the |set()| methods. It takes a name and an object as arguments and the |get()| method can be used later on to retrieve an object by name:

[symfony-users] Trying to load a .css from sfJqueryReloadedPlugin

2010-05-26 Thread Javier Garcia
Hi, i have this lines: ?php use_javascript('/sfJqueryReloadedPlugin/js/plugins/jquery-ui-1.7.2.custom.min.js')? ?php use_stylesheet('/sfJqueryReloadedPlugin/css/ui-lightness/jquery-ui-1.7.2.custom.css')? The first .js is loaded but the second .css not...any idea? -- Javi Ubuntu 8.04 -

[symfony-users] Trying to join two independent forms

2010-05-26 Thread Javier Garcia
Hi, i'm trying to join two independent forms (login and register) in the same page. My idea is (just looking at the signin form): - Create an action that shows both forms (partials): public function executeLoginAndRegister(sfWebRequest $request){

[symfony-users] Re: Trying to join two independent forms

2010-05-26 Thread Javier Garcia
'); } } Anyway if my approach have any big error or is not safety i would thank anyone who tell me. Javi On May 26, 3:38 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, i'm trying to join two independent forms (login and register) in the same page. My idea is (just looking at the signin

Re: [symfony-users] How to check if a variable saved in sfContext is set or not?

2010-05-25 Thread Javier Garcia
May 2010 07:03:30 Javier Garcia wrote: Hi, i have this code: if(sfContext::getInstance()-get('form_signin')){ //... } but im getting this error: The form_signin object does not exist in the current context. Any right way to check if a variable saved in sfContext is set

Re: [symfony-users] Re: shopping cart?

2010-05-24 Thread Javier Garcia
http://groups.google.com/group/symfony-users/browse_thread/thread/e0be57c3d4074d85/f2b58a604f51ae99?lnk=gstq=ecommerce#f2b58a604f51ae99 On 05/24/2010 02:09 AM, bretth wrote: Thanks for the reply Javi, can you point me to the thread? The only recent one I can find on Google Groups about

[symfony-users] Trying to retrieve a variable saved using sfContext::getInstance()

2010-05-24 Thread Javier Garcia
Hi, i have these methods in module1/actions/actions.class.php: public function executeMethod1(sfWebRequest $request){ $a = 10; sfContext::getInstance()-set('a', $a); return $this-redirect('module1/method2'); } public function executeMethod2(sfWebRequest $request){

[symfony-users] Question about sfDoctrineGuardPlugin and signing

2010-05-24 Thread Javier Garcia
Hi, by default, using sfDGP, when i try to execute an action of an application with security activated, the signin form appears but the URL doesn't change to frontend_dev.php/login. So, what should i do to get changing the URL to frontend_dev.php/login ? -- Javi Ubuntu 8.04 - Symfony 1.3

[symfony-users] Question about a piece of code in sfDoctrineGuardPlugin

2010-05-24 Thread Javier Garcia
Hi, there is this code below in sfDoctrineGuardPlugin. $a = sfConfig::get('app_sf_guard_plugin_success_signin_url'); var_dump($a); $signinUrl = sfConfig::get('app_sf_guard_plugin_success_signin_url', $user-getReferer($request-getReferer())); var_dump($signinUrl);

[symfony-users] How to check if a variable saved in sfContext is set or not?

2010-05-24 Thread Javier Garcia
Hi, i have this code: if(sfContext::getInstance()-get('form_signin')){ //... } but im getting this error: The form_signin object does not exist in the current context. Any right way to check if a variable saved in sfContext is set or not ? -- Javi Ubuntu 8.04 - Symfony 1.3 --

Re: [symfony-users] shopping cart?

2010-05-23 Thread Javier Garcia
On 05/22/2010 12:58 AM, bretth wrote: Hi All, I'm looking for any solutions for putting a shopping cart system into a Symfony 1.4 (Doctrine) project. I have found the old shopping Cart plugin for Symfony 1.0 but of course want something current and more fully featured (reports etc) I would

[symfony-users] SfValidatorAnd: does the order of the validators (arguments) care??

2010-05-21 Thread Javier Garcia
Hi, I have this code: $this-validatorSchema-setPostValidator(new sfValidatorAnd(array( new ValidatorPasswordActual(array(), array('invalid' = 'Contraseña actual incorrecta.')), new sfValidatorSchemaCompare('password_nuevo',

[symfony-users] Re: SfValidatorAnd: does the order of the validators (arguments) care??

2010-05-21 Thread Javier Garcia
Sorry, in that order it doesn't work. In the reverse order it works. On May 21, 7:12 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this code:      $this-validatorSchema-setPostValidator(new sfValidatorAnd(array(      new ValidatorPasswordActual(array(), array('invalid

[symfony-users] Probando ysJQueryUIDialog

2010-05-20 Thread Javier Garcia
Hola, cuando pongo en un template el siguiente código, me aparece la pagina en blanco: ?php use_helper('ysJQueryRevolutions') ? ?php use_helper('ysJQueryUIDialog') ? ?php ui_dialog_init('dialogSolicitud' , array( 'listener' = array( 'selector' = '#btnDialogListener',

[symfony-users] Using RenderPartial(): the css files are not loaded

2010-05-20 Thread Javier Garcia
Hi, I have this action below at miembros/actions/actions.class.php: public function executeFoo(sfWebRequest $request){ return $this-renderPartial('foo'); } and in miembros/templates i have _foo.php When i execute it, the css files i have at frontend/config/view.yml are not loaded.

Re: [symfony-users] Using RenderPartial(): the css files are not loaded

2010-05-20 Thread Javier Garcia
Thanks Michal, but it doesn't work.. -- Javi Ubuntu 8.04 - Symfony 1.3 -- 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

[symfony-users] Question about paths

2010-05-19 Thread Javier Garcia
Hi, in the cover page (login, register...) of my app i have this line: link rel=stylesheet type=text/css href=/css/formularios.css When i deploy my app, the that css rule is not loaded because, as i can see in Firebug, it's looking for that rules in www.tirengarfio.com/css/formularios.css

Re: [symfony-users] Re: I cannot see the images in the browsers of Windows XP (VirtualBox)

2010-05-17 Thread Javier Garcia
Can't see means the images are not showed. I have Ubuntu and then I installed VirtualBox with: Windows XP: the images from 'uploads' directory are showed but, for example, the images of the debug toolbar no... Ubuntu: the same as in Windows XP. This is the virtual host configuration:

[symfony-users] I cannot see the images in the browsers of Windows XP (VirtualBox)

2010-05-14 Thread Javier Garcia
Hi, I've some browsers installed in VirtualBox/Windows XP, and I can not see the images of my web app, neither the images in 'uploads' directory or the images of the debug toolbar. I'm accesing local apache web server through 10.0.2.2/project_root. I executed 'project:permissions'. Any

[symfony-users] Re: Question about choice widget

2010-05-13 Thread Javier Garcia
: What about something like ul.radio_list li {display: inline} On 10 kvě, 15:41, Javier Garcia tirengar...@gmail.com wrote: On Mar 29, 3:09 pm, Massimiliano Arione garak...@gmail.com wrote: You jsut need to customize your css, forcing your li's as inline. No need to modify your

[symfony-users] Re: How to show the validation errors inside the modal box?

2010-05-13 Thread Javier Garcia
It desappears. Javi On May 7, 8:31 am, Tom Ptacnik to...@tomor.cz wrote: What happen if there are no errors on the form in modal box? The modal box remain showed with some information like thank you for your informations or it disappears? On 4 kvě, 12:12,JavierGarciatirengar...@gmail.com

[symfony-users] Re: Using $this-widgetSchema-setFormFormatterName('list')

2010-05-11 Thread Javier Garcia
Anyway, if the _form.php is created when i create the module, how is possible the line $this-widgetSchema-setFormFormatterName(‘list’) can change the _form.php file!? or what happens exactly? Javi On May 10, 8:48 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, im using $this-widgetSchema

[symfony-users] Re: Question about filter forms: search for exact words

2010-05-11 Thread Javier Garcia
), $value);                 }         } If where = isn't working, try like in the query instead. On 10 kvě, 11:45, Javier Garcia tirengar...@gmail.com wrote: Hi, i'm using in the frontend a filter form class generated (MemberFormFilter) that filters names, but for example if i write Mar

[symfony-users] Re: Using $this-widgetSchema-setFormFormatterName('list')

2010-05-11 Thread Javier Garcia
I finally removed the content of _form.php and write ?php echo $form? and i get the form as a list. Anyway if i write $this-widgetSchema- setFormFormatterName(‘table’); the form is not render as a table.Is that normal? Javi On May 11, 8:49 am, Javier Garcia tirengar...@gmail.com wrote

[symfony-users] Question about filter forms: search for exact words

2010-05-10 Thread Javier Garcia
Hi, i'm using in the frontend a filter form class generated (MemberFormFilter) that filters names, but for example if i write Mar the members called Mary are showed, i dont want that, i just want to show the members called Mar, what shoud i do? I checked sfWidgetFormFilterInput documentation

[symfony-users] Re: Question about choice widget

2010-05-10 Thread Javier Garcia
On Mar 29, 3:09 pm, Massimiliano Arione garak...@gmail.com wrote: You jsut need to customize your css, forcing your li's as inline. No need to modify your template or your formatter. I'd like to force the li's as inline as you say, but the generated li's don't have the 'id' attribute defined.

[symfony-users] Using $this-widgetSchema-setFormFormatterName('list')

2010-05-10 Thread Javier Garcia
Hi, im using $this-widgetSchema-setFormFormatterName('list'); this way below to render my form as a list but it is still a table. Any idea? public function configure() { parent::configure(); $this-widgetSchema-setFormFormatterName('list'); } } Any idea? Javi

[symfony-users] Any opinion about this code? Coud be shorter or better?

2010-05-07 Thread Javier Garcia
Hi, I need your opinion about this code below. I have a list of messages: each message has a link that change the state of the message (read - non read). In the partial _message i have this: div class=switching_link id=switching_link_?php echo $message ? echo

Re: [symfony-users] The best way to create a form to register new users

2010-05-06 Thread Javier Garcia
or you can use sdDoctrineGuardExtraPlugin. On 05/03/2010 10:26 PM, Michał Piotrowski wrote: Hi, 2010/5/3 Gustavo Fonsecagustavof...@gmail.com: Hi, I'm using sfDoctrineGuardPlugin, The best way is to checkout svn version and use of sfGuardRegister Regards, M and i'm creating

[symfony-users] How can i get the SQL clause of that Doctrine_Query object?

2010-05-05 Thread Javier Garcia
Hi, i have this code: $this-lista_miembros = $this-filtro-buildQuery($valores_query); var_dump($this-lista_miembros); var_dump outputs a Doctrine_Query object: object(Doctrine_Query)[121] protected '_subqueryAliases' = array How can i get the SQL clause of that Doctrine_Query

Re: [symfony-users] [RFC] sfUnifiedGuard for Symfony 2

2010-05-05 Thread Javier Garcia
On 05/04/2010 01:16 PM, Michał Piotrowski wrote: Sounds interesting? Yes, i think would be interesting merging sfDoctrineGuardPlugin, sfDoctrineGuardExtraPlugin and sfDoctrineApplyPlugin. -- Javi Ubuntu 8.04 -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] How to show the validation errors inside the modal box?

2010-05-04 Thread Javier Garcia
Hi, i have a form inside a modal box. If i have some validation error, the form is not showed again inside the the modal box, but in the content area of the browser. Any way to show the form and its validation errors inside the modal box? Here you have my codes: ?php echo m_link_to(

[symfony-users] Different form filters generated

2010-05-04 Thread Javier Garcia
Hi, i have this class in rs1/lib/filter/doctrine/FelizFormFilter.class.php ?php /** * Feliz filter form. * * @packagers * @subpackage filter * @author Your name here * @versionSVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class

[symfony-users] Question about forms: reuse the widgets set in the parent class or not ?

2010-05-03 Thread Javier Garcia
Hi, i have doubts about what is better practice: for example, I have this model: Message: actAs: [Timestampable] columns: sf_guard_user_id: integer(4) receptor: integer(4) type: integer(1) title: type: string(100) notnull: true content: type:

Re: [symfony-users] In remote host: Connection could not be established with host smtp.gmail.com [Connection timed out #110]

2010-04-29 Thread Javier GARCIA
2010/4/28 Eno symb...@gmail.com Much better to relay through a local mail server (perhaps on the same machine) that is better equipped manage a queue and deal with any relaying errors. I asked my hosting provider and they told me i have a email server, but when i write telnet

Re: [symfony-users] Problema con proyecto en servido r de producción

2010-04-28 Thread Javier Garcia
On 04/27/2010 03:07 AM, Fabian Barrera wrote: Estoy trabajando en mi primer proyecto con symfony 1.4 (antes trabajaba con el 1.0). Lo exporté usando project:deploy, siguiendo el tutorial de jobeet. Al entrar a la aplicación, muestra la página de login correctamente, pero al insertar el usuario y

[symfony-users] Re: Problema con proyecto en servido r de producción

2010-04-28 Thread Javier Garcia
En cualquier caso, deberias haber preguntado en el grupo de español (spanish). Javi On Apr 28, 11:38 am, Javier Garcia tirengar...@gmail.com wrote: On 04/27/2010 03:07 AM, Fabian Barrera wrote: Estoy trabajando en mi primer proyecto con symfony 1.4 (antes trabajaba con el 1.0). Lo

[symfony-users] In remote host: Connection could not be established with host smtp.gmail.com [Connection timed out #110]

2010-04-28 Thread Javier Garcia
Hi, after deploying I gettin this error below when i try to send an mail: 500 | Internal Server Error | Swift_TransportException Connection could not be established with host smtp.gmail.com [Connection timed out #110] stack trace * at **() in

<    1   2   3   4   >