[symfony-users] Re: Looking for best practice: Redirecting a subdomain to a symfony app
It actually has its own subdomain... ...so is it better to a) launch the according app inside index.php on bootstrap or b) redirect via .htaccess to the according mobile.php (for instance). Any opinion regarding an established best practice? Thanks again for your help, Christian On Nov 11, 6:49 am, Gareth McCumskey gmccums...@gmail.com wrote: It actually is a part of symfony. The only other alternative I can think of (besides filters which you have mentioned) is if the mobile application is accessed on a different URL from the main site you can use Apache virtual hosts to point to the correct place. On Wed, Nov 10, 2010 at 6:56 PM, cestcri cest...@yahoo.fr wrote: Thanks for your reply, Gareth. I totally agree, but I also think that the index (that's the bootstrap file, right?) is not part of symfony. Anyway, if not there, where else? Best regards, Christian On Nov 10, 1:31 pm, Gareth McCumskey gmccums...@gmail.com wrote: Ultimately my suggestion is try to stick to not editing the files that symfony auto-generates if you can. The simple reason is that if you start tampering with them that you can have potential problems when/if you need to upgrade symfony. That being said, the index.php changes you are talking about do seem minor and index.php isn't part of the symfony library that would contain the majority of changes come upgrades. Just bear in mind that index.php -may- be overwritten in future and you should be ok. On Wed, Nov 10, 2010 at 12:35 PM, cestcri cest...@yahoo.fr wrote: Hi all, I recently launched a mobile app for my website, and now I wonder how to automatically redirect visitors to the new app. I found a solution with filters... but honestly that does not seem very right to me (that would mean that the frontend app would get initialised, and then, via the filter, a change of application/ redirect triggered). I reckon that this could happen in the bootstrap file (index.php) in good old php before initialising symfony. This way I could init() symfony straight away with the correct application, what do you think? Thanks for sharing your point of view and have a nice day, Christian -- 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.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Gareth McCumskeyhttp://garethmccumskey.blogspot.com twitter: @garethmcc -- 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Gareth McCumskeyhttp://garethmccumskey.blogspot.com twitter: @garethmcc -- 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: jq_submit_to_remote examples
On 15 Nov, 02:19, Martin Ibarra Cervantes ibarra.cervan...@gmail.com wrote: Hi, guys, i want use jquery on my forms but i dont have idea how use this. Stay away from any symfony plugin containing the word jQuery. Just implement your form in the standard way, then add jQuery javascripts as needed. You can use jQuery form plugin http://jquery.malsup.com/form/ or anything else you prefer. cheers Massimiliano -- 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: jq_submit_to_remote examples
Hi As suggested by Massimiliano Arione jQuery form plugin http:// jquery.malsup.com/form/ is really good. I use the same with symfony without any issue, and is very handy to use. Thanks Deepak On Nov 15, 7:05 pm, Massimiliano Arione garak...@gmail.com wrote: On 15 Nov, 02:19, Martin Ibarra Cervantes ibarra.cervan...@gmail.com wrote: Hi, guys, i want use jquery on my forms but i dont have idea how use this. Stay away from any symfony plugin containing the word jQuery. Just implement your form in the standard way, then add jQuery javascripts as needed. You can use jQuery form plugin http://jquery.malsup.com/form/or anything else you prefer. cheers Massimiliano -- 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: Symfony2 and Translation
Hi, I had a similar issue and solve by renaming the translation files in messages.en_EN.php messages.de_DE.php messages.en_US.php but still don't know why it doesn't work with just 'en'. Bye -- Alberto On Nov 14, 6:04 pm, Bertrand Zuchuat mailingl...@funstaff.ch wrote: Hi, I would like to use the translation on my test project but i have some problems. i make my dictionary into src/Application/myAppBundle/Resources/translations/messages.en.php. content of this file: return array( 'A propos' = 'About', 'Quitter' = 'Quit', ); my config: app.config: translator: { fallback: fr_CH } ... In my template, i use this code: ?php echo $view['translator']-trans('Quitter'); ? but the translation doesn't work. To switch the user language, i use in my action: $this['request']-getSession()-setLocale('en_US'); Thanks for your help Bertrand -- 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] Migrate full site
Hello My name´s Matias. I´m new here, but I don´t know anything about symfony. I´m just a webmaster without symfony use. My client has a site developed in symfony and I need to migrate it to another server so that´s what I did copy all public_html folder to my server copy all symfony folder to my server copy all ssl folder to my server create the same name database in my server add the same 2 databases users in my server In symfony/config/propel.ni file I change LOCAL host with my new database IP address. The file databases.yml doesn´t exist in that config folder. In symfony/apps/frontend/config/databases.yml and symfony/apps/backend/ config/databases.yml I´ve also changed LOCAL host with my new database IP address I didn´t change anything else. Then when I go to my site I get this error Warning: sfCore::require(/home/elbuen/symfony/lib/symfony/log/ sfLogger.class.php) [sfcore.require]: failed to open stream: No such file or directory in /www/elbuengustoverduras/symfony/lib/symfony/util/ sfCore.class.php on line 163 Fatal error: sfCore::require() [function.require]: Failed opening required '/home/elbuen/symfony/lib/symfony/log/ sfLogger.class.php' (include_path='/www/elbuengustoverduras/symfony/ lib:/www/elbuengustoverduras/symfony:/www/elbuengustoverduras/symfony/ apps/frontend/lib:/www/elbuengustoverduras/symfony/config/../lib/ symfony/vendor:./:/usr/local/php5/lib/php') in /www/ elbuengustoverduras/symfony/lib/symfony/util/sfCore.class.php on line 163 And that´s all, I don´t know what else to do, please help me, consider I don´t know anything about configure symfony or using it! 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] i18n and accents problem
Hi list: This is the first time I work with i18n and Symfony together, but not the same with gettext. Anyway, I've found an issue that would probably have an easy solution, but I'm unable to find it out (not at Google at least). I'm on a French project and we use accents in every part of the code. We first write in French, and then translate to English. We've found so many problems when generating the translation files since accents appears in HTML way (for instance, é becomes #xE9;). How can I fix this? It's not confortable to translate with a xml full of those symbols. Thank you very much! -- 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: jq_submit_to_remote examples
Hi, I've never tried http://jquery.malsup.com/form/ but I would give it a try. @Martin Ibarra Cervantes In one of my application I use jq_form_remote_tag. Here is how it works : ?php echo jq_form_remote_tag(array( 'url' = url_for('@my_route'), //the route where your data will be POSTed 'script' = true, //do you want to use JS in the response ? 'update' = form_result_div,//div that will be updated by the response 'loading' = $('#indicator').show();, //action performed while the request is being processed 'complete' = $('#duplicate-indicator').hide();, //action performed after processing the request 'failure' = alert('OMG : An error has ocuured.'); // action performed when HTTP status is not in 2xx ), array('id' = 'my_form_id') //id of your form ) ? //form fields ... /form Then, in your action, just do as you would do with a regular sf form. Hope that helps. Guillaume On 15 nov, 15:12, deepak deepakkumar...@gmail.com wrote: Hi As suggested by Massimiliano Arione jQuery form plugin http:// jquery.malsup.com/form/ is really good. I use the same with symfony without any issue, and is very handy to use. Thanks Deepak On Nov 15, 7:05 pm, Massimiliano Arione garak...@gmail.com wrote: On 15 Nov, 02:19, Martin Ibarra Cervantes ibarra.cervan...@gmail.com wrote: Hi, guys, i want use jquery on my forms but i dont have idea how use this. Stay away from any symfony plugin containing the word jQuery. Just implement your form in the standard way, then add jQuery javascripts as needed. You can use jQuery form plugin http://jquery.malsup.com/form/or anything else you prefer. cheers Massimiliano -- 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] Freelance Developer
I have over 10+ years of experience in software development and project management. I am System Analyst looking for freelance work, my skill sets: MICROSOFT TECHNOLOGY * SHAREPOINT 2003 / MOSS 2007 / SHAREPOINT 2010 * DOTNET (ASP.NET / C# / VB.NET) * ASP, VB * Database (SQL Server, Oracle MS Access) * Crystal Reports SQL Server Reporting Service OTHER == PHP 4/5 MySQL Joomla WordPress I am looking for Development, Maintenance and Migration projects. I would also love to support existing project and looking out for new project. I will be able to provide give quick turnaround and deliver project on time. -- 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] Showing a form of a related model to upload data
Hello symfoniers, I can't find how to do something no crazy, easy. If somebody did it sure it's easy. I have the following model, and i want to show a page with the form Importes to set data. As you can see in the model, Importes it's related with Impuestos (Taxs in english) and when i do ?php echo $Importe['impuesto_id']-renderRow() ? to render de row it generate a selectable box with all the id of the Impuestos Class, but what i need to show it's also the Nombre data and the id ussing the format [impuesto-id] impuesto-Nombre. Anyone knows how to do it, or where to read to do it. what files touch. Cheers! Nicolas START MODEL - START MODEL - START MODEL - START MODEL - START MODEL - START MODEL - Importes: actAs: { Timestampable: ~ } tableName: Importes columns: id: type: integer primary: true autoincrement: true factura_id: integer impuesto_id: integer ValorNeto: integer Porcentaje: integer relations: FacturaCompra: { local: factura_id, foreign: id, foreignAlias: FacturaCompra } Impuestos: class: Impuestos local: impuesto_id foreign: id type: one # Arreglar relacion Importes - Impuestos Impuestos: actAs: { Timestampable: ~ } tableName: Impuestos columns: id: type: integer primary: true autoincrement: true #Porcentaje: integer Nombre: { type: string(30), notnull: true } END MODEL - END MODEL - END MODEL - END MODEL - END MODEL - END MODEL - END MODEL - -- Nicolas G. Ardison nicolas@gmail.com Antes de imprimir este mensaje, asegúrese de que es necesario. El medio ambiente está en nuestras manos. Before printing, think about the environment. -- 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
Re: [symfony-users] Re: Symfony2 and Translation
Hi, Thanks for your answer. This solution work but it's strange. Bertrand Le 15 nov. 2010 à 15:05, HTC a écrit : I had a similar issue and solve by renaming the translation files in messages.en_EN.php messages.de_DE.php messages.en_US.php but still don't know why it doesn't work with just '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
[symfony-users] Formulario de Usuarios
Buenos Dias Actualmente estoy haciendo una sitio web y me tope con un pequeño obstaculo al hacer el formulario de usuarios. El formulario debe tener una confirmación de la clave ha ingresar, es decir un doble campo para poder estar seguro de que la contraseña es valida. Para esto ya he hecho lo siguiente 1. Agregar el campo 'confirmacion' al formulario y si ya lo veo en la página. 2. Con la función unset desactive el campo un sobreescritura de save, para que no genere errores al guardar en la base de datos. 3. Cree un postvalidador para determinar cuando las contraseñas son diferentes. Pero el problema es que siempre me aparece el mensaje de error hay un parámetro extra en el formulario y por más que intento con offsetUnset no puedo eliminar este campo del validador. Alguien me puede ayuda? estoy bien por donde voy o hay otra forma de agregar un campo que no se va a guardar em un formulario, solo sirve para filtrar? gracias -- 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
Re: [symfony-users] Session setLocale doesn't work with default param
Hello Bertrand, This bug is resolved by this commit : https://github.com/fabpot/symfony/commit/a45baed8129c0e16d082d51216d43df0bb0da7ff Le 15 nov. 2010 à 19:43, Bertrand Zuchuat a écrit : Hi Fabien, I have another problem with Translation. I switch to another locale (ex: en_US) work but if i would like to return to my default locale, this is not work. $this['request']-getSession()-setLocale('en_US'); == OK $this['request']-getSession()-setLocale('fr_CH'); == NOT OK My config: app.config: ... session: storage_id: native default_locale: fr_CH name: lifetime: 3600 translator: enabled:true fallback: fr_CH If i paste the default value (fr_CH) on setLocale, the locale attribute doesn't change because, you are this test $locale === $this-getDefaultLocale(). class Session { ... public function setLocale($locale) { if ($locale === $this-getDefaultLocale()) { return; } if (false === $this-started) { $this-start(); } $this-attributes['_locale'] = $locale; } } is it possible to default this test ? Thanks for your help Bertrand -- 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
Re: [symfony-users] Session setLocale doesn't work with default param
Oo, Sorry. I miss update my master branch of fabpot repository. Good news. Thanks Bertrand Le 15 nov. 2010 à 20:43, Francis Besset a écrit : This bug is resolved by this commit :https://github.com/fabpot/symfony/commit/a45baed8129c0e16d082d51216d43df0bb0da7ff -- 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