Re: [symfony-users] Error 500 backend application in production
Check your loginform's template to see if it echoes the correct url in the action property, also check if you have no_script_name disabled in the backend's settings.yml On Mon, Mar 22, 2010 at 01:24, Jose San Gil wrote: > Hi everybody, > > I'm working in a project with frontend and backend application. The > index.php of the project points to the frontend app and all the > actions work great in this app over the production server > > However, when I try to use the backend application, the problems > start. If I try to login (sfGuardDoctrine), the following error is > displayed: > > The template "_login.php" does not exist or is unreadable in "". > > So, it looks like a routing problem, because when I press the submit > button of the login form, the url: > > http://mydom.com/backend.php/ > > changes to this one: > > http://mydom.com/login > > Due to that change, symfony is trying to execute the action in the > frontend app, but that action doesn't exist and an error 500 is > displayed. > > If I try to access to the dev server instead of prod, the actions are > executed perfectly. > > i.e: http://mydom.com/backend_dev.php > > This is my routing.yml file: > > ## > /apps/backend/config/routing.yml > > sf_guard_user: > class: sfDoctrineRouteCollection > options: > model: sfGuardUser > module: sfGuardUser > prefix_path: usuarios > segment_names: { new: crear, edit: editar, delete: eliminar } > column: id > with_wildcard_routes: true > > sf_guard_signin: > url: /login > param: { module: sfGuardAuth, action: signin } > > sf_guard_signout: > url: /logout > param: { module: sfGuardAuth, action: signout } > > sf_guard_password: > url: /request_password > param: { module: sfGuardAuth, action: password } > > ajax_getstates: > url: /getStates > param: { module: sfGuardUser, action: getStates } > > ajax_getcities: > url: /getCities > param: {module: sfGuardUser, action: getCities} > > ajax_gettalleres: > url: /getTalleres > param: {module: siniestro, action: getTalleres} > > # default rules > homepage: > url: / > param: { module: poliza, action: index } > > default_index: > url: /:module > param: { action: index } > > default: > url: /:module/:action/* > ### > > I will appreciate if you could help me. > > 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 > > 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. > -- 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.
Re: [symfony-users] How to access user details with sfGuard
Thanks a lot guys, It works! 2010/3/21 Stéphane > Hi, > > You could do an admin-gen for the sf_guard_user (overload the plugin's > one), then embed the profile form in your sfGuardUserForm::configure(); > using $this->embedRelation("profile*"); and hide the user properties you > don't want to show (username, password, etc) using generator.yml > configuration. > > *where "profile" is the name of the relation you have defined in your > schema in the definition of the user profile class > > Cheers > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > 2010/3/21 Lea Hänsenberger > > Hi Fabrizio, >> in action classes you can access the user with >> $this->getUser()->getGuardUser() and the profile with >> $this->getUser()->getProfile(). In a template you can access them with >> $sf_user->getGuardUser() ...->getProfile(). >> >> Cheers, >> Lea >> >> On Mar 21, 2010, at 17:06 , Fabrizio Scimia wrote: >> >> > Hello, >> > >> > I'm learning to use symfony and I have a question related to user >> details. >> > >> > I want to create a simple page that show the user details after the >> authentication. >> > >> > I created a frontend application and I installed the >> sfDoctrineGuardPlugin. I enabled the modules >> sfGuardAuth,sfGuardUser,sfGuardGroup,sfGuardPermission in settings.yml, so >> when i load frontend_dev.php I'm requested to enter login and password. I >> created a new table called "profile" in order to store additional user >> information and related it to sfGuard tables. >> > >> > I guess that after the authentication an instance of the sfGuardUser >> class is created. I would like to access that object and print the user >> details in the profile table. >> > >> > I tried to create a module based on "profile" table, but in this way I >> get all the records of the table and not only the one of the authenticated >> user. >> > >> > Any help? >> > >> > Thanks in advance, >> > Fabrizio >> > >> > >> > -- >> > 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. >> >> -- >> 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. >> > > -- > 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. > -- 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: Symfony 2.0 - Use anchor in url
On 19 mar, 22:48, Marijn wrote: > What code do you use for link generation? > The code is something like this: '.$data_1['post_time'].' In the generated page, I can see the link is "/voirtopic/18/1#p_70", so I clik, and then in the address bar it becomes... "/voirtopic/ 18/1%23p_70". But if I modified the url in the address bar and write "#" instead of "%23", it works fine and goes to the anchor in the page. Thanks, Jérémie > I suggest you don't add the #id to your link generation: > > getSomeValue(); ?> > > On Mar 19, 8:05 pm, Jérémie wrote: > > > On Mar 19, 7:51 pm, Marijn wrote:> Where > > does symfony overwrite those links? In your routing file? Or in > > > the RoutingHelper? > > > In the address bar of the browser. The link, created with > > "$view->router->generate('mypage')", is ok. I can see it's something like > > > "localhost/myproject/mypage#12". Then I click, my browser opens the > > link, the page is loaded, but doesn't go the theanchor(because of > > the "#" becoming "%23"). > > > Thanks for your answer :) > > Jérémie > > > > On Mar 19, 5:16 pm, Jérémie wrote: > > > > > I there, > > > > > I'd like to use anchors in my project, but when I have something like > > > > "/page/1#12", it's overwritten by "/page/1%2312" > > > > We could change it in the previous versions, but in 2.0, I can't find > > > > where. > > > > Does anybody know? > > > > > Thanks > > > > Jérémie -- 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: Symfony 2.0 - Use anchor in url
Try this: wrote: > On 19 mar, 22:48, Marijn wrote: > > > What code do you use for link generation? > > The code is something like this: > > '.$data_1['post_time'].' > > In the generated page, I can see the link is "/voirtopic/18/1#p_70", > so I clik, and then in the address bar it becomes... "/voirtopic/ > 18/1%23p_70". > But if I modified the url in the address bar and write "#" instead of > "%23", it works fine and goes to the anchor in the page. > > Thanks, > Jérémie > > > > > I suggest you don't add the #id to your link generation: > > > getSomeValue(); ?> > > > On Mar 19, 8:05 pm, Jérémie wrote: > > > > On Mar 19, 7:51 pm, Marijn wrote:> Where > > > does symfony overwrite those links? In your routing file? Or in > > > > the RoutingHelper? > > > > In the address bar of the browser. The link, created with > > > "$view->router->generate('mypage')", is ok. I can see it's something like > > > > "localhost/myproject/mypage#12". Then I click, my browser opens the > > > link, the page is loaded, but doesn't go the theanchor(because of > > > the "#" becoming "%23"). > > > > Thanks for your answer :) > > > Jérémie > > > > > On Mar 19, 5:16 pm, Jérémie wrote: > > > > > > I there, > > > > > > I'd like to use anchors in my project, but when I have something like > > > > > "/page/1#12", it's overwritten by "/page/1%2312" > > > > > We could change it in the previous versions, but in 2.0, I can't find > > > > > where. > > > > > Does anybody know? > > > > > > Thanks > > > > > Jérémie -- 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: Symfony 2.0 - Use anchor in url
On 22 mar, 10:16, Marijn wrote: > Try this: > > Still the same problem. I really think it's something we can configure in Symfony options; we can do it with the previous versions. Jérémie > On Mar 22, 9:38 am, Jérémie wrote: > > > On 19 mar, 22:48, Marijn wrote: > > > > What code do you use for link generation? > > > The code is something like this: > > > '.$data_1['post_time'].' > > > In the generated page, I can see the link is "/voirtopic/18/1#p_70", > > so I clik, and then in the address bar it becomes... "/voirtopic/ > > 18/1%23p_70". > > But if I modified the url in the address bar and write "#" instead of > > "%23", it works fine and goes to theanchorin the page. > > > Thanks, > > Jérémie > > > > I suggest you don't add the #id to your link generation: > > > > getSomeValue(); ?> > > > > On Mar 19, 8:05 pm, Jérémie wrote: > > > > > On Mar 19, 7:51 pm, Marijn wrote:> Where > > > > does symfony overwrite those links? In your routing file? Or in > > > > > the RoutingHelper? > > > > > In the address bar of the browser. The link, created with > > > > "$view->router->generate('mypage')", is ok. I can see it's something > > > > like > > > > > "localhost/myproject/mypage#12". Then I click, my browser opens the > > > > link, the page is loaded, but doesn't go the theanchor(because of > > > > the "#" becoming "%23"). > > > > > Thanks for your answer :) > > > > Jérémie > > > > > > On Mar 19, 5:16 pm, Jérémie wrote: > > > > > > > I there, > > > > > > > I'd like to use anchors in my project, but when I have something > > > > > > like > > > > > > "/page/1#12", it's overwritten by "/page/1%2312" > > > > > > We could change it in the previous versions, but in 2.0, I can't > > > > > > find > > > > > > where. > > > > > > Does anybody know? > > > > > > > Thanks > > > > > > Jérémie -- 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.
Re: [symfony-users] Re: Symfony 2.0 - Use anchor in url
On 3/22/10 10:24 AM, Jérémie wrote: On 22 mar, 10:16, Marijn wrote: Try this: Still the same problem. I really think it's something we can configure in Symfony options; we can do it with the previous versions. The anchor does not belong to the URL, just add it after the URL: ... Fabien Jérémie On Mar 22, 9:38 am, Jérémie wrote: On 19 mar, 22:48, Marijn wrote: What code do you use for link generation? The code is something like this: '.$data_1['post_time'].' In the generated page, I can see the link is "/voirtopic/18/1#p_70", so I clik, and then in the address bar it becomes... "/voirtopic/ 18/1%23p_70". But if I modified the url in the address bar and write "#" instead of "%23", it works fine and goes to theanchorin the page. Thanks, Jérémie I suggest you don't add the #id to your link generation: ">getSomeValue(); ?> On Mar 19, 8:05 pm, Jérémie wrote: On Mar 19, 7:51 pm, Marijn wrote:> Where does symfony overwrite those links? In your routing file? Or in the RoutingHelper? In the address bar of the browser. The link, created with "$view->router->generate('mypage')", is ok. I can see it's something like "localhost/myproject/mypage#12". Then I click, my browser opens the link, the page is loaded, but doesn't go the theanchor(because of the "#" becoming "%23"). Thanks for your answer :) Jérémie On Mar 19, 5:16 pm, Jérémie wrote: I there, I'd like to use anchors in my project, but when I have something like "/page/1#12", it's overwritten by "/page/1%2312" We could change it in the previous versions, but in 2.0, I can't find where. Does anybody know? Thanks Jérémie -- 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] Deploying a Symfony project on shared hosting
HI Symfonians, i am fresh in symfony development , and facing trouble in deploying symfony on Bluehost shared server. Can any one list the steps to deploy the project on the main domain , not on sub domain i want to install project on www.somedomain.com , and not on its sub domain Looking forward to hear from you people -- 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: Symfony 2.0 - Use anchor in url
The last 2 answers were right! (even if I said there where still the problem :-P ) Thanks a lot to all of you :) Jérémie On 22 mar, 10:53, Fabien Potencier wrote: > On 3/22/10 10:24 AM, Jérémie wrote: > > > > > On 22 mar, 10:16, Marijn wrote: > >> Try this: > > >> > > Still the same problem. > > I really think it's something we can configure in Symfony options; we > > can do it with the previous versions. > > Theanchordoes not belong to the URL, just add it after the URL: > > ... > > Fabien > > > > > Jérémie > >> On Mar 22, 9:38 am, Jérémie wrote: > > >>> On 19 mar, 22:48, Marijn wrote: > > What code do you use for link generation? > > >>> The code is something like this: > > >>> '.$data_1['post_time'].' > > >>> In the generated page, I can see the link is "/voirtopic/18/1#p_70", > >>> so I clik, and then in the address bar it becomes... "/voirtopic/ > >>> 18/1%23p_70". > >>> But if I modified the url in the address bar and write "#" instead of > >>> "%23", it works fine and goes to theanchorin the page. > > >>> Thanks, > >>> Jérémie > > I suggest you don't add the #id to your link generation: > > getSomeValue(); ?> > > On Mar 19, 8:05 pm, Jérémie wrote: > > > On Mar 19, 7:51 pm, Marijn wrote:> > > Where does symfony overwrite those links? In your routing file? Or in > >> the RoutingHelper? > > > In the address bar of the browser. The link, created with > > "$view->router->generate('mypage')", is ok. I can see it's something > > like > > > "localhost/myproject/mypage#12". Then I click, my browser opens the > > link, the page is loaded, but doesn't go the theanchor(because of > > the "#" becoming "%23"). > > > Thanks for your answer :) > > Jérémie > > >> On Mar 19, 5:16 pm, Jérémie wrote: > > >>> I there, > > >>> I'd like to use anchors in my project, but when I have something like > >>> "/page/1#12", it's overwritten by "/page/1%2312" > >>> We could change it in the previous versions, but in 2.0, I can't find > >>> where. > >>> Does anybody know? > > >>> Thanks > >>> Jérémie -- 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] sfValidatorDoctrineChoice and i18n
I'm using Symfony 1.4.3 + Doctrine 1.2, and a typical i18n category table (the ids are in category, and the name and slug in category_translation). I have this Doctrine validator defined in my form: $this->setValidators(array( 'category' => new sfValidatorDoctrineChoice(array('model' => 'Category', 'column' => 'slug')), )); So, when I submit the form, I get this error: Unknown column slug Then I thought: "ok, maybe I should include a query with the Translation table linked, let's do it": $query = Doctrine_Core::getTable('Category')->createQuery('c')- >leftJoin('c.Translation t'); $this->setValidators(array( 'category' => new sfValidatorDoctrineChoice(array('model' => 'Category', 'query' => $query, 'column' => 'slug')), )); And when resubmiting, I'm again getting the same error: Unknown column slug Mmm... ok, maybe I should define a select statement with the slug field defined. So, I redefine my query like this: $query = Doctrine_Core::getTable('Category')->createQuery('c')- >select('c.id, t.name name, t.slug slug')->leftJoin('c.Translation t'); And again the error: Unknown column slug I have no more ideas... what should I do?? 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 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: Saving some data during insert, update, and deleting object?
Any ideas guys? -- 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] how to create a copy of symfony app using a different database
A newbie question: how do I create a copy of symfony app using a different database? Here is what I tried: 1) copied my symfony 1.2.12 application to another dir to make a copy of it. 2) did a dump of the MySQL database used by the original symfony app and created a new db where I inserted the data from the dump 3) For the new symfony application I changed the new database name in config/databases.yml 4) Tried inserting data using a form in thew new app => Problem: the data was inserted in the original symfony app's db, not into the new one Best regards, Peter -- 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.
Re: [symfony-users] how to create a copy of symfony app using a different database
execute: php symfony cc On Tue, Mar 23, 2010 at 1:22 AM, Peter Peltonen wrote: > A newbie question: how do I create a copy of symfony app using a > different database? Here is what I tried: > > 1) copied my symfony 1.2.12 application to another dir to make a copy of it. > > 2) did a dump of the MySQL database used by the original symfony app > and created a new db where I inserted the data from the dump > > 3) For the new symfony application I changed the new database name in > config/databases.yml > > 4) Tried inserting data using a form in thew new app > > => Problem: the data was inserted in the original symfony app's db, > not into the new one > > Best regards, > Peter > > -- > 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. > -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- 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.
Re: [symfony-users] Re: Saving some data during insert, update, and deleting object?
Look at doctrine event system. It implement pseudo event methods (pre/postSave, preDelete, postHydrate ,etc) in Doctrine_Record class, you can easily override them, they are call at right time to modify values on object Regards, Benoit Le 22 mars 2010 à 12:56, verox a écrit : Any ideas guys? -- 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. -- 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.
Re: [symfony-users] how to create a copy of symfony app using a different database
On Mon, 22 Mar 2010, Peter Peltonen wrote: > 4) Tried inserting data using a form in thew new app > > => Problem: the data was inserted in the original symfony app's db, > not into the new one You probably need to rebuild models and/or forms for the new database setting to take effect. -- -- 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: Saving some data during insert, update, and deleting object?
Thanks a lot. On 22 Mar, 13:31, Benoit Montuelle wrote: > Look at doctrine event system. > > It implement pseudo event methods (pre/postSave, preDelete, > postHydrate ,etc) in Doctrine_Record class, you can easily override > them, they are call at right time to modify values on object > > Regards, > Benoit > > Le 22 mars 2010 à 12:56, verox a écrit : > > > > > Any ideas guys? > > > -- > > 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. -- 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.
Re: [symfony-users] how to create a copy of symfony app using a different database
"application" : You mean real app in apps/ or complete symfony project to copy ? Peter Peltonen wrote: A newbie question: how do I create a copy of symfony app using a different database? Here is what I tried: 1) copied my symfony 1.2.12 application to another dir to make a copy of it. 2) did a dump of the MySQL database used by the original symfony app and created a new db where I inserted the data from the dump 3) For the new symfony application I changed the new database name in config/databases.yml 4) Tried inserting data using a form in thew new app => Problem: the data was inserted in the original symfony app's db, not into the new one Best regards, Peter -- 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.
Re: [symfony-users] Select fields updating other form fields
I did this feature on a car site : http://www.groupe-lempereur.com On the upper right, you can find 4 select fields, with the model (modèle) field depending from the mark (marque) field through ajax. *The code :* In action.class.php : public function executeSearch() { $user = $this->getUser(); $this->form = new searchForm(); $this->form->bind($this->getRequestParameter('search')); } public function executeAjaxModel($request) { $this->form = new searchForm(); $this->form->bind(); } in searchSuccess.php : renderLabel() ?>render() ?> renderLabel() ?>render() ?> renderLabel() ?>render() ?> renderLabel() ?>render() ?> renderLabel() ?>render() ?> jQuery('#search_mark_id').change(function(e) { jQuery.post ( '=url_for('@search_ajax_model') ?>', {mark_id: jQuery('#search_mark_id').val()}, function(html){jQuery('#search_model_id').replaceWith(html);}, 'html' ); }); In ajaxModelSuccess.php : render()?> In searchForm.class.php : class searchForm extends BaseFormDoctrine { public function setup() { parent::setup(); $q = Doctrine::getTable('model')->queryAllUsed()->orderBy('m2.name ASC, m.name ASC'); $request = sfContext::getInstance()->getRequest(); $mark_id = $request->getParameter('search[mark_id]' ,$request->getParameter('mark_id')); if($mark_id) $q->addWhere('m.mark_id = ?', $mark_id); $select_empty = '-- Indifférent --'; $select_prices = array( '' => $select_empty, '0:5000' => 'Moins de 5.000EUR', '5000:1' => 'de 5.000EUR à 10.000EUR', '1:15000' => 'de 10.000EUR à 15.000EUR', '15000:2' => 'de 15.000EUR à 20.000EUR', '2:+' => 'Plus de 20.000EUR', ); $this->setWidgets(array( 'price'=> new sfWidgetFormChoice(array('choices' => $select_prices)), 'mark_id' => new sfWidgetFormDoctrineSelect(array('model' => 'mark', 'add_empty' => $select_empty, 'query' => Doctrine::getTable('mark')->queryAllUsed())), 'bodywork_id' => new sfWidgetFormDoctrineSelect(array('model' => 'bodywork', 'add_empty' => $select_empty, 'order_by' => array('name','asc'))), 'fuel_id' => new sfWidgetFormDoctrineSelect(array('model' => 'fuel', 'add_empty' => $select_empty, 'order_by' => array('name','asc'))), 'model_id' => new sfWidgetFormDoctrineChoice(array('model' => 'model', 'add_empty' => $select_empty, 'query' => $q)), )); $this->setValidators(array( 'price' => new sfValidatorChoice(array('choices' => array_keys($select_prices), 'required' => false)), 'mark_id' => new sfValidatorDoctrineChoice(array('model' => 'mark', 'required' => false)), 'bodywork_id' => new sfValidatorDoctrineChoice(array('model' => 'bodywork', 'required' => false)), 'fuel_id' => new sfValidatorDoctrineChoice(array('model' => 'fuel', 'required' => false)), 'model_id' => new sfValidatorDoctrineChoice(array('model' => 'model', 'required' => false)), )); $this->widgetSchema->setLabel('price', 'Prix'); $this->widgetSchema->setLabel('mark_id', 'Marque'); $this->widgetSchema->setLabel('bodywork_id', 'Carrosserie'); $this->widgetSchema->setLabel('fuel_id', 'Carburation'); $this->widgetSchema->setLabel('model_id', 'Modèle'); $this->widgetSchema->setPositions(array('bodywork_id', 'mark_id', 'price', 'fuel_id', 'model_id')); $this->widgetSchema->setNameFormat('search[%s]'); $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema); } public function getModelName() { return 'vehicle'; } } Note that theses lines are very bads : $request = sfContext::getInstance()->getRequest(); $mark_id = $request->getParameter('search[mark_id]' ,$request->getParameter('mark_id')); You should use form option feature instead with getOption() and setOption() methods. bretth wrote: Hi all, I need to make a form which has a number of select fields; changing one field causes the second select field to reload with a number of sub items based on what was selected in the first. Ie Selecting a Category from the first select field updates the Subcategories select field with only the subcategories for that category. I've searched high and low for how to achieve this with Symfony 1.4 and haven't come up with any thing particularly useful or definitive. There's some stuff for 1.2 but it doesn't seem to apply to 1.4. What's the best way to achieve this with Symfony 1.4? Do I pull in the entire form each time the select field changes, and some how pass in t
[symfony-users] Re: Using sf 2.0
Well Jon, your answers helped a lot to make me more confortable with using sf 1.4 for now. Indeed, I already started the works, and I believe I'm doing in a way that will be easy to upgrade (aka: lot's of classes). About the 2.0's: Will we have the forms? And the routes? Thanks in advance once more On 22 mar, 00:33, Jonathan Wage wrote: > Hi, > > On Sat, Mar 20, 2010 at 1:07 PM, Sid Ferreira wrote: > > Hi Jon! > > Well, I know and understand. But at same time, Im thinking why would I > > build something, that will be stable only to the end of the year, that > > has no comercial use, with something that has a deprecation date > > already. > > Also I was thinking about have project 'building' scripts, so would be > > like unit tests to build this project. > > > But it also made me think: Will sf 2.0 be released 2010? Or it's just > > a goal? > > The goal is December. > > > > > What about Doctrine 2.0? Is it at the same alpha stage? Is there a > > sfDoctrine20Plugin? > > The plan for Doctrine 2 stable release is September 1st 2010. Yes, > sfDoctrine2Plugin exists for symfony 1.3 and 1.4. > > - Jon > > > > > > > Thanks in advance > > > On 19 mar, 15:29, Jonathan Wage wrote: > > > Hi, > > > > Symfony 2 just really isn't ready for a real project. It was a preview > > > release. Lots of functionality is missing and not added yet. Things will > > > change a lot. You will continually run into problems and missing > > > functionality. It will be added for sure, we just have to settle on some > > > core things first, like naming, class locations, structure, etc. before > > we > > > start building these convenience features on top of everything else. > > > > - Jon > > > > On Fri, Mar 19, 2010 at 12:31 PM, Sid Ferreira > > wrote: > > > > Im starting a new project, that won't be ready soon, so I decided to > > > > already start it with symfony 2.0. > > > > Im still a bit confused with the new architecture specially about the > > > > command line. So Im wondering: > > > > 1) Will have more/new examples soon? > > > > 2) Is there a console to create new apps/bundles? > > > > > Thanks in advance, > > > > Sid Ferreira > > > > > -- > > > > 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 > > > legroups.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. > > > > -- > > > Jonathan H. Wage (+1 415 992 5468) > > > Open Source Software Developer & Evangelist > > > sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org > > > > You should follow me on Twitter:http://www.twitter.com/jwage > > > > You can contact Jonathan about Doctrine, Symfony and Open-Source or for > > > training, consulting, application development, or business related > > questions > > > at jonathan.w...@sensio.com > > > -- > > 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 > legroups.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. > > -- > Jonathan H. Wage (+1 415 992 5468) > Open Source Software Developer & Evangelist > sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org > > You should follow me on Twitter:http://www.twitter.com/jwage > > You can contact Jonathan about Doctrine, Symfony and Open-Source or for > training, consulting, application development, or business related questions > at jonathan.w...@sensio.com -- 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
[symfony-users] Doctrine: Unknown aggregate alias: CASE
Good afternoon, I am trying to do a conditional query with Doctrine as follow, just with a simple select case. $q = Doctrine_Query::create() ->select('a.uid,am.uid,(CASE WHEN a.auctionTypeModel=2 THEN a.buyNowValue WHEN (MAX(ab.value) > 0) THEN MAX(ab.value) ELSE a.startvalue END) as price') If I run this query manually this works, but when trying to run it through doctrine, I have got this nasty error message: "Doctrine: Unknown aggregate alias: CASE" like doctrine try to convert my case statement into table names. Has someone already experienced that and if so, how did this person get around this issue. 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 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: sfValidatorDoctrineChoice and i18n
Have the model Category a slug attribute?, or better, has it a getSlug() method? On 22 bře, 12:19, HiDDeN wrote: > I'm using Symfony 1.4.3 + Doctrine 1.2, and a typical i18n category > table (the ids are in category, and the name and slug in > category_translation). > > I have this Doctrine validator defined in my form: > > $this->setValidators(array( > 'category' => new sfValidatorDoctrineChoice(array('model' => > 'Category', 'column' => 'slug')), > )); > > So, when I submit the form, I get this error: > > Unknown column slug > > Then I thought: "ok, maybe I should include a query with the > Translation table linked, let's do it": > > $query = > Doctrine_Core::getTable('Category')->createQuery('c')->leftJoin('c.Translation > t'); > > $this->setValidators(array( > 'category' => new sfValidatorDoctrineChoice(array('model' => > 'Category', 'query' => $query, 'column' => 'slug')), > )); > > And when resubmiting, I'm again getting the same error: > > Unknown column slug > > Mmm... ok, maybe I should define a select statement with the slug > field defined. So, I redefine my query like this: > > $query = Doctrine_Core::getTable('Category')->createQuery('c')->select('c.id, > t.name name, t.slug slug')->leftJoin('c.Translation > > t'); > > And again the error: > > Unknown column slug > > I have no more ideas... what should I do?? > > 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 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] sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month
Hello, I'm using this widget in a symfony form like this: $dateWidget = new sfWidgetFormDate(array( 'format' => '%day%/%month%/%year%', 'years' => $years_list )); $this->widgetSchema['date_naissance'] = new sfWidgetFormJqueryDate(array( 'date_widget' => $dateWidget )); But when I select the 8th or 9th of a month the day is not filled with the value 08 or 09. Here the output generated by this widget: / **/ 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 / 01 02 03 04 05 06 07 08 09 10 11 12 / 2000 2001 2002 2003 2004 2005 function wfd_info_candidat_date_naissance_read_linked() { jQuery("#info_candidat_date_naissance_jquery_control").val(jQuery("#info_candidat_date_naissance_year").val() + "-" + jQuery("#info_candidat_date_naissance_month").val() + "-" + jQuery("#info_candidat_date_naissance_day").val()); return {}; } function wfd_info_candidat_date_naissance_update_linked(date) { jQuery("#info_candidat_date_naissance_year").val(parseInt(date.substring(0, 4))); jQuery("#info_candidat_date_naissance_month").val(parseInt(date.substring(5, 7))); jQuery("#info_candidat_date_naissance_day").val(parseInt(date.substring(8))); } function wfd_info_candidat_date_naissance_check_linked_days() { var daysInMonth = 32 - new Date(jQuery("#info_candidat_date_naissance_year").val(), jQuery("#info_candidat_date_naissance_month").val() - 1, 32).getDate(); jQuery("#info_candidat_date_naissance_day option").attr("disabled", ""); jQuery("#info_candidat_date_naissance_day option:gt(" + (daysInMonth - 1) +")").attr("disabled", "disabled"); if (jQuery("#info_candidat_date_naissance_day").val() > daysInMonth) { jQuery("#info_candidat_date_naissance_day").val(daysInMonth); } } jQuery(document).ready(function() { jQuery("#info_candidat_date_naissance_jquery_control").datepicker(jQuery.extend({}, { minDate:new Date(2000, 1 - 1, 1), maxDate:new Date(2005, 12 - 1, 31), beforeShow: wfd_info_candidat_date_naissance_read_linked, onSelect: wfd_info_candidat_date_naissance_update_linked, showOn: "button" }, jQuery.datepicker.regional[""], {}, {dateFormat: "yy-mm-dd"})); }); jQuery("#info_candidat_date_naissance_day, #info_candidat_date_naissance_month, #info_candidat_date_naissance_year").change(wfd_info_candidat_date_naissance_check_linked_days); / **/ -- 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: sfValidatorDoctrineChoice and i18n
Yes, it is defined as a i18n table: Category: actAs: I18n: fields: [name] actAs: Sluggable: { fields: [name], uniqueBy: [lang, name] } columns: id: { type: integer(2), unsigned: true, primary: true } name: { type: string, length: 50, notnull: true } On Mar 22, 2:53 pm, Tom Ptacnik wrote: > Have the model Category a slug attribute?, or better, has it a > getSlug() method? > > On 22 bře, 12:19, HiDDeN wrote: > > > > > I'm using Symfony 1.4.3 + Doctrine 1.2, and a typical i18n category > > table (the ids are in category, and the name and slug in > > category_translation). > > > I have this Doctrine validator defined in my form: > > > $this->setValidators(array( > > 'category' => new sfValidatorDoctrineChoice(array('model' => > > 'Category', 'column' => 'slug')), > > )); > > > So, when I submit the form, I get this error: > > > Unknown column slug > > > Then I thought: "ok, maybe I should include a query with the > > Translation table linked, let's do it": > > > $query = > > Doctrine_Core::getTable('Category')->createQuery('c')->leftJoin('c.Translat > > ion t'); > > > $this->setValidators(array( > > 'category' => new sfValidatorDoctrineChoice(array('model' => > > 'Category', 'query' => $query, 'column' => 'slug')), > > )); > > > And when resubmiting, I'm again getting the same error: > > > Unknown column slug > > > Mmm... ok, maybe I should define a select statement with the slug > > field defined. So, I redefine my query like this: > > > $query = > > Doctrine_Core::getTable('Category')->createQuery('c')->select('c.id, t.name > > name, t.slug slug')->leftJoin('c.Translation > > > t'); > > > And again the error: > > > Unknown column slug > > > I have no more ideas... what should I do?? > > > 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 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: sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month
Get the latest version of the plugin, it s been fixed ~ On Mar 22, 2:57 pm, Raphaël B. wrote: > Hello, > > I'm using this widget in a symfony form like this: > > $dateWidget = new sfWidgetFormDate(array( > 'format' => '%day%/%month%/%year%', > 'years' => $years_list > )); > > $this->widgetSchema['date_naissance'] = new > sfWidgetFormJqueryDate(array( > 'date_widget' => $dateWidget > )); > > But when I select the 8th or 9th of a month the day is not > filled with the value 08 or 09. > > Here the output generated by this widget: > > / > *** > ***/ > id="info_candidat_date_naissance_day"> > > > 01 > 02 > 03 > 04 > 05 > 06 > 07 > 08 > > 09 > 10 > 11 > 12 > 13 > 14 > 15 > 16 > 17 > > 18 > 19 > 20 > 21 > 22 > 23 > 24 > 25 > 26 > > 27 > 28 > 29 > 30 > 31 > / id="info_candidat_date_naissance_month"> > > 01 > 02 > > 03 > 04 > 05 > 06 > 07 > 08 > 09 > 10 > 11 > > 12 > / id="info_candidat_date_naissance_year"> > > 2000 > 2001 > 2002 > 2003 > 2004 > 2005 > > id="info_candidat_date_naissance_jquery_control" disabled="disabled" > /> > > function wfd_info_candidat_date_naissance_read_linked() > { > > jQuery("#info_candidat_date_naissance_jquery_control").val(jQuery("#info_ca > ndidat_date_naissance_year").val() > + "-" + jQuery("#info_candidat_date_naissance_month").val() + "-" + > jQuery("#info_candidat_date_naissance_day").val()); > > return {}; > } > > function wfd_info_candidat_date_naissance_update_linked(date) > { > > jQuery("#info_candidat_date_naissance_year").val(parseInt(date.substring(0, > 4))); > > jQuery("#info_candidat_date_naissance_month").val(parseInt(date.substring(5 , > 7))); > > jQuery("#info_candidat_date_naissance_day").val(parseInt(date.substring(8)) ); > } > > function wfd_info_candidat_date_naissance_check_linked_days() > { > var daysInMonth = 32 - new > Date(jQuery("#info_candidat_date_naissance_year").val(), > jQuery("#info_candidat_date_naissance_month").val() - 1, > 32).getDate(); > jQuery("#info_candidat_date_naissance_day > option").attr("disabled", ""); > jQuery("#info_candidat_date_naissance_day option:gt(" + > (daysInMonth - 1) +")").attr("disabled", "disabled"); > > if (jQuery("#info_candidat_date_naissance_day").val() > > daysInMonth) > { > jQuery("#info_candidat_date_naissance_day").val(daysInMonth); > } > } > > jQuery(document).ready(function() { > > jQuery("#info_candidat_date_naissance_jquery_control").datepicker(jQuery.ex > tend({}, > { > minDate: new Date(2000, 1 - 1, 1), > maxDate: new Date(2005, 12 - 1, 31), > beforeShow: wfd_info_candidat_date_naissance_read_linked, > onSelect: wfd_info_candidat_date_naissance_update_linked, > showOn: "button" > > }, jQuery.datepicker.regional[""], {}, {dateFormat: "yy-mm-dd"})); > }); > > jQuery("#info_candidat_date_naissance_day, > #info_candidat_date_naissance_month, > #info_candidat_date_naissance_year").change(wfd_info_candidat_date_naissanc > e_check_linked_days); > > / > *** > ***/ -- 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: sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month
just update the plugin (php symfony plugin:upgrade sfFormExtraPlugin) and still has the same problem... On 22 mar, 15:33, xplo wrote: > Get the latest version of the plugin, it s been fixed ~ > > On Mar 22, 2:57 pm, Raphaël B. wrote: > > > Hello, > > > I'm using this widget in a symfony form like this: > > > $dateWidget = new sfWidgetFormDate(array( > > 'format' => '%day%/%month%/%year%', > > 'years' => $years_list > > )); > > > $this->widgetSchema['date_naissance'] = new > > sfWidgetFormJqueryDate(array( > > 'date_widget' => $dateWidget > > )); > > > But when I select the 8th or 9th of a month the day is not > > filled with the value 08 or 09. > > > Here the output generated by this widget: > > > / > > *** > > ***/ > > > id="info_candidat_date_naissance_day"> > > > > > 01 > > 02 > > 03 > > 04 > > 05 > > 06 > > 07 > > 08 > > > 09 > > 10 > > 11 > > 12 > > 13 > > 14 > > 15 > > 16 > > 17 > > > 18 > > 19 > > 20 > > 21 > > 22 > > 23 > > 24 > > 25 > > 26 > > > 27 > > 28 > > 29 > > 30 > > 31 > > / > id="info_candidat_date_naissance_month"> > > > > 01 > > 02 > > > 03 > > 04 > > 05 > > 06 > > 07 > > 08 > > 09 > > 10 > > 11 > > > 12 > > / > id="info_candidat_date_naissance_year"> > > > > 2000 > > 2001 > > 2002 > > 2003 > > 2004 > > 2005 > > > > id="info_candidat_date_naissance_jquery_control" disabled="disabled" > > /> > > > function wfd_info_candidat_date_naissance_read_linked() > > { > > > jQuery("#info_candidat_date_naissance_jquery_control").val(jQuery("#info_ca > > ndidat_date_naissance_year").val() > > + "-" + jQuery("#info_candidat_date_naissance_month").val() + "-" + > > jQuery("#info_candidat_date_naissance_day").val()); > > > return {}; > > } > > > function wfd_info_candidat_date_naissance_update_linked(date) > > { > > > jQuery("#info_candidat_date_naissance_year").val(parseInt(date.substring(0, > > 4))); > > > jQuery("#info_candidat_date_naissance_month").val(parseInt(date.substring(5 > > , > > 7))); > > > jQuery("#info_candidat_date_naissance_day").val(parseInt(date.substring(8)) > > ); > > } > > > function wfd_info_candidat_date_naissance_check_linked_days() > > { > > var daysInMonth = 32 - new > > Date(jQuery("#info_candidat_date_naissance_year").val(), > > jQuery("#info_candidat_date_naissance_month").val() - 1, > > 32).getDate(); > > jQuery("#info_candidat_date_naissance_day > > option").attr("disabled", ""); > > jQuery("#info_candidat_date_naissance_day option:gt(" + > > (daysInMonth - 1) +")").attr("disabled", "disabled"); > > > if (jQuery("#info_candidat_date_naissance_day").val() > > > daysInMonth) > > { > > jQuery("#info_candidat_date_naissance_day").val(daysInMonth); > > } > > } > > > jQuery(document).ready(function() { > > > jQuery("#info_candidat_date_naissance_jquery_control").datepicker(jQuery.ex > > tend({}, > > { > > minDate: new Date(2000, 1 - 1, 1), > > maxDate: new Date(2005, 12 - 1, 31), > > beforeShow: wfd_info_candidat_date_naissance_read_linked, > > onSelect: wfd_info_candidat_date_naissance_update_linked, > > showOn: "button" > > > }, jQuery.datepicker.regional[""], {}, {dateFormat: "yy-mm-dd"})); > > }); > > > jQuery("#info_candidat_date_naissance_day, > > #info_candidat_date_naissance_month, > > #info_candidat_date_naissance_year").change(wfd_info_candidat_date_naissanc > > e_check_linked_days); > > > > / > > *** > > ***/ -- 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.
Re: [symfony-users] Re: Using sf 2.0
On Mon, Mar 22, 2010 at 9:03 AM, Sid Ferreira wrote: > Well Jon, your answers helped a lot to make me more confortable with > using sf 1.4 for now. > Indeed, I already started the works, and I believe I'm doing in a way > that will be easy to upgrade (aka: lot's of classes). > > About the 2.0's: Will we have the forms? And the routes? > > Yes. > > > Thanks in advance once more > > On 22 mar, 00:33, Jonathan Wage wrote: > > Hi, > > > > On Sat, Mar 20, 2010 at 1:07 PM, Sid Ferreira wrote: > > > Hi Jon! > > > Well, I know and understand. But at same time, Im thinking why would I > > > build something, that will be stable only to the end of the year, that > > > has no comercial use, with something that has a deprecation date > > > already. > > > Also I was thinking about have project 'building' scripts, so would be > > > like unit tests to build this project. > > > > > But it also made me think: Will sf 2.0 be released 2010? Or it's just > > > a goal? > > > > The goal is December. > > > > > > > > > What about Doctrine 2.0? Is it at the same alpha stage? Is there a > > > sfDoctrine20Plugin? > > > > The plan for Doctrine 2 stable release is September 1st 2010. Yes, > > sfDoctrine2Plugin exists for symfony 1.3 and 1.4. > > > > - Jon > > > > > > > > > > > > > Thanks in advance > > > > > On 19 mar, 15:29, Jonathan Wage wrote: > > > > Hi, > > > > > > Symfony 2 just really isn't ready for a real project. It was a > preview > > > > release. Lots of functionality is missing and not added yet. Things > will > > > > change a lot. You will continually run into problems and missing > > > > functionality. It will be added for sure, we just have to settle on > some > > > > core things first, like naming, class locations, structure, etc. > before > > > we > > > > start building these convenience features on top of everything else. > > > > > > - Jon > > > > > > On Fri, Mar 19, 2010 at 12:31 PM, Sid Ferreira > > > wrote: > > > > > Im starting a new project, that won't be ready soon, so I decided > to > > > > > already start it with symfony 2.0. > > > > > Im still a bit confused with the new architecture specially about > the > > > > > command line. So Im wondering: > > > > > 1) Will have more/new examples soon? > > > > > 2) Is there a console to create new apps/bundles? > > > > > > > Thanks in advance, > > > > > Sid Ferreira > > > > > > > -- > > > > > 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. > > > > > > -- > > > > Jonathan H. Wage (+1 415 992 5468) > > > > Open Source Software Developer & Evangelist > > > > sensiolabs.com | jwage.com | doctrine-project.org | > symfony-project.org > > > > > > You should follow me on Twitter:http://www.twitter.com/jwage > > > > > > You can contact Jonathan about Doctrine, Symfony and Open-Source or > for > > > > training, consulting, application development, or business related > > > questions > > > > at jonathan.w...@sensio.com > > > > > -- > > > 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. > > > > -- > > Jonathan H. Wage (+1 415 992 5468) > > Open Source Software Developer & Evangelist > > sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org > > > > You should follow me on Twitter:http://www.twitter.com/jwage > > > > You can contact Jonathan about Doctrine, Symfony and Open-Source or for > > training, consulting, application development, or business related > questions > > at jonathan.w...@sensio.com > > -- > 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 em
[symfony-users] prefill login form
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] Custom Error Page Settings Not Working
I have this in my config.yml file: all: .actions: error_404_module: dashboard error_404_action: notFound However, even after I have cleared my cache it does not use that file. How long does it take to adjust? Thanks, Darren -- 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] 'symfony fix-perms' doesnt work, but dont have access to sudo?
So ran 'symfony fix-perms' today and didnt work. sys-admin prob locked down the box more. I get error messages like: >> chmod 666 cache/myapp/dev/config/modules_home_config_module.yml.php Warning: chmod(): Operation not permitted in /usr/local/lib/php/ symfony/vendor/pake/pakeFunction.php on line 273 [symfony 1.0.21 hehe] >> chmod 666 log/myapp_dev.log Warning: chmod(): Operation not permitted in /usr/local/lib/php/ symfony/vendor/pake/pakeFunction.php on line 273 Now i try to run that chmod by itself standalone and realize I dont have rights to chmod... Sys-admin says i can individually chmod with 'sudo chmod 666 log/myapp_dev.log', but I tell him its a script running it, so he tells me to make the script sudo all its chmods... Is this the best solution? So instead of php's chmod() function use something instead like exec('sudo php -f symfony fix-perms') func in the pake script. Thanks for any info!, Ari -- 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.
Re: [symfony-users] 'symfony fix-perms' doesnt work, but dont have access to sudo?
On Mon, 22 Mar 2010, armyofda12monkeys wrote: > So ran 'symfony fix-perms' today and didnt work. sys-admin prob locked > down the box more. > I get error messages like: > > >> chmod 666 cache/myapp/dev/config/modules_home_config_module.yml.php > Warning: chmod(): Operation not permitted in /usr/local/lib/php/ > symfony/vendor/pake/pakeFunction.php on line 273 [symfony 1.0.21 hehe] > >> chmod 666 log/myapp_dev.log > Warning: chmod(): Operation not permitted in /usr/local/lib/php/ > symfony/vendor/pake/pakeFunction.php on line 273 > > Now i try to run that chmod by itself standalone and realize I dont > have rights to chmod... Sys-admin says i can individually chmod with > 'sudo chmod 666 log/myapp_dev.log', but I tell him its a script > running it, so he tells me to make the script sudo all its chmods... > Is this the best solution? So instead of php's chmod() function use > something instead like exec('sudo php -f symfony fix-perms') func in > the pake script. The problem is that frequently on hosting accounts, the PHP script is running under Apache (and hence Apache's username, not yours). So those cache files are all owned by another user, hence your problem. You should however be able to remove cache files (since you own the cache folder itself). If you app needs to invalidate parts of the cache, then you need to write a cache management modules that removes those cache files. -- -- 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: sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month
I m pretty sure it s been fixed since i had exactly the same problem however i took the latest version from the svn wich is not the latest build on their website and i guess the symfony update command. On Mar 22, 4:22 pm, Raphaël B. wrote: > just update the plugin (php symfony plugin:upgrade sfFormExtraPlugin) > and still has the same problem... > > On 22 mar, 15:33, xplo wrote: > > > > > Get the latest version of the plugin, it s been fixed ~ > > > On Mar 22, 2:57 pm, Raphaël B. wrote: > > > > Hello, > > > > I'm using this widget in a symfony form like this: > > > > $dateWidget = new sfWidgetFormDate(array( > > > 'format' => '%day%/%month%/%year%', > > > 'years' => $years_list > > > )); > > > > $this->widgetSchema['date_naissance'] = new > > > sfWidgetFormJqueryDate(array( > > > 'date_widget' => $dateWidget > > > )); > > > > But when I select the 8th or 9th of a month the day is not > > > filled with the value 08 or 09. > > > > Here the output generated by this widget: > > > > / > > > *** > > > ***/ > > > > > id="info_candidat_date_naissance_day"> > > > > > > > 01 > > > 02 > > > 03 > > > 04 > > > 05 > > > 06 > > > 07 > > > 08 > > > > 09 > > > 10 > > > 11 > > > 12 > > > 13 > > > 14 > > > 15 > > > 16 > > > 17 > > > > 18 > > > 19 > > > 20 > > > 21 > > > 22 > > > 23 > > > 24 > > > 25 > > > 26 > > > > 27 > > > 28 > > > 29 > > > 30 > > > 31 > > > / > > id="info_candidat_date_naissance_month"> > > > > > > 01 > > > 02 > > > > 03 > > > 04 > > > 05 > > > 06 > > > 07 > > > 08 > > > 09 > > > 10 > > > 11 > > > > 12 > > > / > > id="info_candidat_date_naissance_year"> > > > > > > 2000 > > > 2001 > > > 2002 > > > 2003 > > > 2004 > > > 2005 > > > > > > id="info_candidat_date_naissance_jquery_control" disabled="disabled" > > > /> > > > > function wfd_info_candidat_date_naissance_read_linked() > > > { > > > > jQuery("#info_candidat_date_naissance_jquery_control").val(jQuery("#info_ca > > > ndidat_date_naissance_year").val() > > > + "-" + jQuery("#info_candidat_date_naissance_month").val() + "-" + > > > jQuery("#info_candidat_date_naissance_day").val()); > > > > return {}; > > > } > > > > function wfd_info_candidat_date_naissance_update_linked(date) > > > { > > > > jQuery("#info_candidat_date_naissance_year").val(parseInt(date.substring(0, > > > 4))); > > > > jQuery("#info_candidat_date_naissance_month").val(parseInt(date.substring(5 > > > , > > > 7))); > > > > jQuery("#info_candidat_date_naissance_day").val(parseInt(date.substring(8)) > > > ); > > > } > > > > function wfd_info_candidat_date_naissance_check_linked_days() > > > { > > > var daysInMonth = 32 - new > > > Date(jQuery("#info_candidat_date_naissance_year").val(), > > > jQuery("#info_candidat_date_naissance_month").val() - 1, > > > 32).getDate(); > > > jQuery("#info_candidat_date_naissance_day > > > option").attr("disabled", ""); > > > jQuery("#info_candidat_date_naissance_day option:gt(" + > > > (daysInMonth - 1) +")").attr("disabled", "disabled"); > > > > if (jQuery("#info_candidat_date_naissance_day").val() > > > > daysInMonth) > > > { > > > jQuery("#info_candidat_date_naissance_day").val(daysInMonth); > > > } > > > } > > > > jQuery(document).ready(function() { > > > > jQuery("#info_candidat_date_naissance_jquery_control").datepicker(jQuery.ex > > > tend({}, > > > { > > > minDate: new Date(2000, 1 - 1, 1), > > > maxDate: new Date(2005, 12 - 1, 31), > > > beforeShow: wfd_info_candidat_date_naissance_read_linked, > > > onSelect: wfd_info_candidat_date_naissance_update_linked, > > > showOn: "button" > > > > }, jQuery.datepicker.regional[""], {}, {dateFormat: "yy-mm-dd"})); > > > }); > > > > jQuery("#info_candidat_date_naissance_day, > > > #info_candidat_date_naissance_month, > > > #info_candidat_date_naissance_year").change(wfd_info_candidat_date_naissanc > > > e_check_linked_days); > > > > > > / > > > *** > > > ***/ -- 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.
Re: [symfony-users] how to create a copy of symfony app using a different database
Hi and thanks for your replies. On Mon, Mar 22, 2010 at 2:46 PM, Syam wrote: > "application" : You mean real app in apps/ or complete symfony project to > copy ? I meant a complete symfony project. I managed to resolve my problem which was due to a silly mistake: the new symfony project's Apache virtual host config was pointing to the old project, and therefore I ended up saving to the wrong database also :) Cheers, Peter -- 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: Custom Error Page Settings Not Working
Hi, It's in settings.yml On Mar 23, 5:40 am, DarrenMr wrote: > I have this in my config.yml file: > all: > .actions: > error_404_module: dashboard > error_404_action: notFound > > However, even after I have cleared my cache it does not use that file. > How long does it take to adjust? > > Thanks, > Darren -- 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: LDAP Plugin
Hi, Has anybody used LDAP way of authenticating the users in Symfony ? Thanks in advance Deepak Bhatia On Wed, Jan 13, 2010 at 1:09 PM, DEEPAK BHATIA wrote: > Hi, > > Anybody implemented the LDAP Plugin for their project > > http://www.symfony-project.org/plugins/bhLDAPAuthPlugin > > Regards > > Deepak Bhatia > -- 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.