[symfony-users] Re: symfony1.4.6 --How to use date tag in view files
You can copy the old helper file (FormHelper.php and/or DateFormHelper.php) on /lib/helper and use the old style. Anyway, I recommend you to use the new framework form, but if tou have a lot of code from 1.0 this can help. On 19 nov, 09:24, deepak deepakkumar...@gmail.com wrote: Hi I am using symfony 1.4.6. There is a requirement where I have to use date fields i.e. three fields date,month,year. Is there any tag which I can use to produce the date field in my view files? like it was in symfony 1.0 suh as echo input_date_tag('date', null, array('rich' = true)); or ?php echo select_day_tag('day', 1, 'include_custom=Choose a day') ? etc. NOTE: I am not using symfony forms framework instead its normal html form written in view files. Hopefully I make some sense here. Thanks -- 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Setting default culture in a task with symfony 1.4.5
I have a task that I want to have a culture that is no en I fixed the culture in settings.yml: all: i18n: true default_culture:es But, when I execute a task, the default culture for all related propel is en. If I execute sfPropel::getDefaultCulture() I get always 'en' as response. I made a quick and dirty workaround setting the culture for propel to es at the beginning of the task, but I think that has to be a correct way to set the culture in a task through the configuration files. Anyone has an idea of how to set the default culture in a task? Thanks in advance, Manel Monguilod -- 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Partial in component
Is not a good idea to get a partial in an action, is better in the template. In a component you can include a partial in the template like this: ?php echo include_partial('module/partial', $params)? I use in several components without problem. Manel On 31 mar, 17:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: In an action I can use $this-getPartial('system/email_template'), but that doesn't work in an component. How can I do this in a component? -- 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: prefill login form
Maybe you can pass the username as a parameter and retrieve from the request. On 22 mar, 16:47, Lea Haensenberger baerne...@gmail.com wrote: Hi all, I'd like to pre-fill the username of the sfDoctrineGuardPlugin login form, after the user registered and confirmed his email. Is there an easy way to pre-fill values in the login form or do I have to override the executeSignin action of the plugin? Cheers, Lea -- 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[symfony-users] Re: Deploying: if i write the password in properties.ini, why i have to write it again?
JAvier, take a look on this: http://troy.jdmz.net/rsync/index.html Manel On 18 mar, 18:19, Javier Garcia tirengar...@gmail.com wrote: Hi, this is my properties.ini. When i deploy my project (deploy --go) it asks me the password. [symfony] name=rs [production] host=208.43.66.44 port=65001 user=tirengar dir=public_html type=rsync pass=my_password --- 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. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[symfony-users] Re: Unable to put sfGuardUser tables in a different database that the rest of the tables
Unfortunately I have several plugins and some of them uses propel. I think that I'm not asking anything too strange. Is usual that you have several applications and only one user for all. For instance, I have one application in asp.net and another in symfony that have the same users, and share the users database. I've looked the way propel generates the form classes, and as far as I understood they get the propel connection for ALL the plugins, and you can change the connection (via the --connection parameter), but is for all the plugins. There is no way to assign to an specific plugin one specific connection? Anyone knows if in symfony 1.4 is this possible? Thanks for your help, Manel On 19 mar, 08:46, Frank Stelzer d...@bleedingmoon.de wrote: Mmh, i think the only chance getting this working is the way of defining a different db connection for all of your custom schema. So the propel connection would only point to the guard schema and your project schema to the rest. This would only work, when you do not use other plugins, which are using the propel connection by default. Frank Am 17.03.2010 um 16:32 schrieb Manel: I want the data of the sfGuardUser plugin in a database that is not the propel database. I want this because I will have several applications in diferent servers, but I want to unify the user credentials for all the applications. I've defined 2 databases in databases.yml: all: propel: class: sfPropelDatabase param: classname: DebugPDO dsn: 'mysql:dbname=dbdata;host=localhost' username: datauser password: dbuser: class: sfPropelDatabase param: classname: PropelPDO dsn: 'mysql:dbname=dbuser;host=remote_server' username: sfGuardUser password: And I've modified the schema.yml of the plugin dfGuardUser to reflect the new database: dbuser: _attributes: { package: plugins.sfGuardPlugin.lib.model } sf_guard_group: _attributes: { phpName: sfGuardGroup } id: ~ name: { type: varchar, size: 255, required: true, index: unique } description: { type: longvarchar } ... When I try to do a symfony propel:build-forms I get the following error: propel generating form classes Cannot fetch TableMap for undefined table: sf_guard_user. Make sure you have the static MapBuilder registration code after your peer stub class definition. If I return the schema.yml of sfGuardUser to the original database (propel) all runs fine, but I get the tables in the same database. I searched for this problems in the groups and in the symfony website but I'm unable to find a solution. I'm using symfony 1.2.12 on a Linux box. Thanks for your help. -- 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[symfony-users] Re: Unable to put sfGuardUser tables in a different database that the rest of the tables
Unfortunately I have several plugins and some of them uses propel. I think that I'm not asking anything too strange. Is usual that you have several applications and only one user for all. For instance, I have one application in asp.net and another in symfony that have the same users, and share the users database. I've looked the way propel generates the form classes, and as far as I understood they get the propel connection for ALL the plugins, and you can change the connection (via the --connection parameter), but is for all the plugins. There is no way to assign to an specific plugin one specific connection? Anyone knows if in symfony 1.4 is this possible? Thanks for your help, Manel On 19 mar, 13:31, Manel mmongui...@quesabesde.com wrote: Unfortunately I have several plugins and some of them uses propel. I think that I'm not asking anything too strange. Is usual that you have several applications and only one user for all. For instance, I have one application in asp.net and another in symfony that have the same users, and share the users database. I've looked the way propel generates the form classes, and as far as I understood they get the propel connection for ALL the plugins, and you can change the connection (via the --connection parameter), but is for all the plugins. There is no way to assign to an specific plugin one specific connection? Anyone knows if in symfony 1.4 is this possible? Thanks for your help, Manel On 19 mar, 08:46, Frank Stelzer d...@bleedingmoon.de wrote: Mmh, i think the only chance getting this working is the way of defining a different db connection for all of your custom schema. So the propel connection would only point to the guard schema and your project schema to the rest. This would only work, when you do not use other plugins, which are using the propel connection by default. Frank Am 17.03.2010 um 16:32 schrieb Manel: I want the data of the sfGuardUser plugin in a database that is not the propel database. I want this because I will have several applications in diferent servers, but I want to unify the user credentials for all the applications. I've defined 2 databases in databases.yml: all: propel: class: sfPropelDatabase param: classname: DebugPDO dsn: 'mysql:dbname=dbdata;host=localhost' username: datauser password: dbuser: class: sfPropelDatabase param: classname: PropelPDO dsn: 'mysql:dbname=dbuser;host=remote_server' username: sfGuardUser password: And I've modified the schema.yml of the plugin dfGuardUser to reflect the new database: dbuser: _attributes: { package: plugins.sfGuardPlugin.lib.model } sf_guard_group: _attributes: { phpName: sfGuardGroup } id: ~ name: { type: varchar, size: 255, required: true, index: unique } description: { type: longvarchar } ... When I try to do a symfony propel:build-forms I get the following error: propel generating form classes Cannot fetch TableMap for undefined table: sf_guard_user. Make sure you have the static MapBuilder registration code after your peer stub class definition. If I return the schema.yml of sfGuardUser to the original database (propel) all runs fine, but I get the tables in the same database. I searched for this problems in the groups and in the symfony website but I'm unable to find a solution. I'm using symfony 1.2.12 on a Linux box. Thanks for your help. -- 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[symfony-users] Unable to put sfGuardUser tables in a different database that the rest of the tables
I want the data of the sfGuardUser plugin in a database that is not the propel database. I want this because I will have several applications in diferent servers, but I want to unify the user credentials for all the applications. I've defined 2 databases in databases.yml: all: propel: class: sfPropelDatabase param: classname: DebugPDO dsn: 'mysql:dbname=dbdata;host=localhost' username: datauser password: dbuser: class: sfPropelDatabase param: classname: PropelPDO dsn: 'mysql:dbname=dbuser;host=remote_server' username: sfGuardUser password: And I've modified the schema.yml of the plugin dfGuardUser to reflect the new database: dbuser: _attributes: { package: plugins.sfGuardPlugin.lib.model } sf_guard_group: _attributes:{ phpName: sfGuardGroup } id: ~ name: { type: varchar, size: 255, required: true, index: unique } description:{ type: longvarchar } ... When I try to do a symfony propel:build-forms I get the following error: propelgenerating form classes Cannot fetch TableMap for undefined table: sf_guard_user. Make sure you have the static MapBuilder registration code after your peer stub class definition. If I return the schema.yml of sfGuardUser to the original database (propel) all runs fine, but I get the tables in the same database. I searched for this problems in the groups and in the symfony website but I'm unable to find a solution. I'm using symfony 1.2.12 on a Linux box. Thanks for your help. -- 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en