[symfony-users] Re: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?
Well, I wouldn 't use the remote function since it 's deprecated. And yes, you could use the form framework for this. The 'normal way' of constructing a symfony form is to build your widget schema using the configure () method and nothing prevents you to put a loop in that method. If this behavior is going to be used in multiple locations, you could even subclass sfForm to package only this behavior. I 've only been using sf1.2+ recently, so there might be another (better) way of doing this. I 'v also seen sfWidgetFormSchemaForEach () in the API documentation which might be what you 're looking for judging by it 's name, but I haven't studied the API docs. Something like this could work: $form = new CommentApprovalForm; // set id 's of comments in the form and reconfigure $form->setCommentValues (array(1,2,54,10)); $form->configure(); // In your template foreach ($form as $form_field){ $form_field->renderRow(); } // your form class configure method public function configure () { ... foreach ($this->comment_values as $comment_value) { $this->addWidget(...); } ... } On Dec 28, 9:42 am, dziobacz wrote: > I would like to approve comments clicking on checkboxes using AJAX > (without refreshing page). > Screen is here:http://forum.symfony-project.org/index.php/t/24537/ > So as you can see above now I have checkboxes - each checkbox is a one > row from table - so I must write in view: > > > foreach($comments as $c) > { > echo " if($c->getApproved() == 1) echo "checked='checked'"; > echo " />"; > echo $c->getComment(); > } > ?> > > > Is it the best solution ? Maybe I should create this form using > Symfony forms in catalog /form ? But in that case I will have to pass > $this->comments to Symfony form and then create one checkbox per one > row using loop, so I don't know if it is possible in Symfony forms and > I don't know if I should in that case using Symfony forms ? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] error in jobeet day9
hey i just finished the jobeet day 9 !! now i have an error which says: 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception SQLSTATE[42S22]: Column not found: 1054 Unknown column 'j.slug' in 'field list' can anyone tell what it is?? i am new to symfony and php as well!! -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Veeeeeeeeeerry Strange Error with a form
hmm..what is your dev environment Operating system, and find out which is for your production environment. I had a similar problem, where the forms would not execute in the production environment but would execute itself in the dev environment just fine. The issue was that my production was linux based, hence it's case sensitive whereas my dev is windows based, hence case insensitive.what i needed to change was the following line which is in the dev to note the capital F letter try this out or the equivalent of for your code, maybe it works for you On Tue, Dec 29, 2009 at 12:02 AM, Dennis wrote: > I have a project where I copied the guts of a Doctrine based form, > deleted all fields, added a simple file field, but kept the line with > 'getModelName' with the old model. Didn't think it would work it all, > but it does, sort of. > > When I use the dev environment, it works perfectly. I upload a file, I > can bind it, get the value, save the fiile to file system, VOILA, > build the original model in a new object, and save the URL for the > file's new location in the database. Love :-) > > When I run it in production mode, accessing the ...URL/new link > produces NO output, sends a 500 Server Error return code. Using die > statements, I found that it stops at the ONE line in 'executeNew' > function of the action class. > > $this->form = new > myNewFormNotBasedOnModelNameHasNoAssociatedObjectClass(); > > Now is where it gets wierd, wierd, wierd. I did the following tracing: > > Put a try/catch block around the line above . . . no exception gets > trapped. > Traced out all the Form Hierarchy: > MyNewForm... >BaseOldFormName... > BaseFormDoctrine... >sfFormDoctrine (has a constructor which calls the > parent::__constructor) > BaseForm... >sfFormSymfony (has a constructor which calls the > parent::__constructor) > sfForm (has a constructor) > > So I put an echo statement in the constructor of sfFormDoctrine, the > first constructor that should be encountered by PHP generating the > object, and folks, it never gets executed. Somewhere in building the > object hierarchy, php crashes, or some Symfony/Doctrine code throws an > exception. Now I have NO idea where that code might be, I don't think > there is any. It's just PHP creating an object and until executable > code is found in a constructor, there's nothing the code base can > affect. > > So, my next thing is to put a constructor in my new form and see if it > gets executed. Probably, I am going to have to switch to using sfForm > as my base class, 'cause it doesn't have to be based on a model > object, OR, I am going to have to make a model object, OR learn more > about file uploads :-) > > I'l post what I find is the error spot, but without a full blown > debugger, I think I"m just going to get lucky if I find it. > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: sfDoctrineGuard translation
I'm glad it worked! :) You can set a different catalogue to use for a form in the form formatter class. As far as the module code generation goes... hmm, you'd have to create your own module generation theme. Cheers, Daniel On Dec 29, 2009, at 3:46 AM, diogobaeder wrote: > Hi, Daniel, > > Thanks for the help, it really worked for the __() function calls! :-) > > Despite, I noticed that fields generated by widgets don't include this > function call, so I would have to declare localized labels for them, > too... wouldn't it be a better idea if these plugins were already > prepared for internationalization? I mean, loading the i18n helper at > the templates and form libs, so that the user could easily create > translation files for the plugin? > > Diogo > > > > On 28 dez, 06:35, Daniel Lohse wrote: >> For your example it's pretty clear that symfony can't find the translations. >> And sure enough, you forgot to add the catalogue to the __() method call. >> Plugin or not, it doesn't matter. >> >> In the signinSuccess.php change this: >> >> __('Forgot your password?') >> >> to this: >> >> __('Forgot your password?', array(), 'sf_admin') >> >> and it should work. >> >> Cheers, Daniel >> >> On Dec 28, 2009, at 1:43 AM, diogobaeder wrote: >> >>> Daniel, >> >>> For example, in the signinSuccess.php template, at >>> sfDoctrineGuardPlugin, we have a "__('Forgot your password?')" call, >>> that should be translated if a translation is put in the >>> sf_admin.pt_BR.xml file. I've put a translation element there, but >>> it's not working. But for a translation for a gettext function call in >>> the Symfony core, for example a "__('Choose an action')" call (the >>> first for the at the bottom of the admin list >>> actions), it works. >> >>> So, if I have: >> >>> >>>Choose an action >>>Selecione uma ação >>> >>> >>>Forgot your password? >>>Esqueceu sua senha? >>> >> >>> The first translation is working, but the second is not. I realized >>> that the second is used in a plugin, so that's why I thought it could >>> be something with how the translations relate to plugins. >> >>> Any ideas? >> >>> Diogo >> >>> On 27 dez, 12:12, Daniel Lohse wrote: Could you elaborate on/rephrase your last message again, please? I did not understand what stays where and does not get translated... :) >> Daniel >> On Dec 27, 2009, at 2:57 PM, diogobaeder wrote: >> > Hi, Daniel, >> > I've already named the file like you said, and part of the admin is > translated. But the part that stays in the plugins (sfDoctrineGuard > and sfMediaBrowser) is not translated. It seems like the translation > file I created only works with translation for the core components. >> > Any other idea? >> > Thanks! >> > On 27 dez, 08:44, Daniel Lohse wrote: >> You'll need to name the file sf_admin.pt_BR.xml >> >> Cheers, Daniel >> >> On Dec 27, 2009, at 3:30 AM, diogobaeder wrote: >> >>> No solution for that? Anybody? >> >>> On 22 dez, 18:04, Diogo Baeder wrote: Hi there, >> I'm translating some strings that lacked in the original pt_BR XLIFF file for Symfony 1.4.2-DEV. Even though, my translation for sfDoctrineGuardPlugin is not working; None of them is being read. >> How can I translating the plugin, so that the authentication screen and messages stay in my language? (Brazillian Portuguese.) >> Thanks! >> -- Diogo Baeder - desenvolvedor webhttp://diogobaeder.com.br >> >>> -- >> >>> You received this message because you are subscribed to the Google >>> Groups "symfony users" group. >>> To post to this group, send email to symfony-us...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> symfony-users+unsubscr...@googlegroups.com. >>> For more options, visit this group >>> athttp://groups.google.com/group/symfony-users?hl=en. >> > -- >> > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en. >> >>> -- >> >>> You received this message because you are subscribed to the Google Groups >>> "symfony users" group. >>> To post to this group, send email to symfony-us...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> symfony-users+unsubscr...@googlegroups.com. >>> For more options, visit this group >>> athttp://groups.google.com/group/symfony-users?hl=en. > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group,
[symfony-users] Re: sfDoctrineGuard translation
Hi, Daniel, Thanks for the help, it really worked for the __() function calls! :-) Despite, I noticed that fields generated by widgets don't include this function call, so I would have to declare localized labels for them, too... wouldn't it be a better idea if these plugins were already prepared for internationalization? I mean, loading the i18n helper at the templates and form libs, so that the user could easily create translation files for the plugin? Diogo On 28 dez, 06:35, Daniel Lohse wrote: > For your example it's pretty clear that symfony can't find the translations. > And sure enough, you forgot to add the catalogue to the __() method call. > Plugin or not, it doesn't matter. > > In the signinSuccess.php change this: > > __('Forgot your password?') > > to this: > > __('Forgot your password?', array(), 'sf_admin') > > and it should work. > > Cheers, Daniel > > On Dec 28, 2009, at 1:43 AM, diogobaeder wrote: > > > Daniel, > > > For example, in the signinSuccess.php template, at > > sfDoctrineGuardPlugin, we have a "__('Forgot your password?')" call, > > that should be translated if a translation is put in the > > sf_admin.pt_BR.xml file. I've put a translation element there, but > > it's not working. But for a translation for a gettext function call in > > the Symfony core, for example a "__('Choose an action')" call (the > > first for the at the bottom of the admin list > > actions), it works. > > > So, if I have: > > > > > Choose an action > > Selecione uma ação > > > > > > Forgot your password? > > Esqueceu sua senha? > > > > > The first translation is working, but the second is not. I realized > > that the second is used in a plugin, so that's why I thought it could > > be something with how the translations relate to plugins. > > > Any ideas? > > > Diogo > > > On 27 dez, 12:12, Daniel Lohse wrote: > >> Could you elaborate on/rephrase your last message again, please? > >> I did not understand what stays where and does not get translated... :) > > >> Daniel > > >> On Dec 27, 2009, at 2:57 PM, diogobaeder wrote: > > >>> Hi, Daniel, > > >>> I've already named the file like you said, and part of the admin is > >>> translated. But the part that stays in the plugins (sfDoctrineGuard > >>> and sfMediaBrowser) is not translated. It seems like the translation > >>> file I created only works with translation for the core components. > > >>> Any other idea? > > >>> Thanks! > > >>> On 27 dez, 08:44, Daniel Lohse wrote: > You'll need to name the file sf_admin.pt_BR.xml > > Cheers, Daniel > > On Dec 27, 2009, at 3:30 AM, diogobaeder wrote: > > > No solution for that? Anybody? > > > On 22 dez, 18:04, Diogo Baeder wrote: > >> Hi there, > > >> I'm translating some strings that lacked in the original pt_BR XLIFF > >> file for Symfony 1.4.2-DEV. Even though, my translation for > >> sfDoctrineGuardPlugin is not working; None of them is being read. > > >> How can I translating the plugin, so that the authentication screen and > >> messages stay in my language? (Brazillian Portuguese.) > > >> Thanks! > > >> -- > >> Diogo Baeder - desenvolvedor webhttp://diogobaeder.com.br > > > -- > > > You received this message because you are subscribed to the Google > > Groups "symfony users" group. > > To post to this group, send email to symfony-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/symfony-users?hl=en. > > >>> -- > > >>> You received this message because you are subscribed to the Google Groups > >>> "symfony users" group. > >>> To post to this group, send email to symfony-us...@googlegroups.com. > >>> To unsubscribe from this group, send email to > >>> symfony-users+unsubscr...@googlegroups.com. > >>> For more options, visit this group > >>> athttp://groups.google.com/group/symfony-users?hl=en. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Passing Params to Routes
Can you show us an example URL? And what does your doSelectByDomain methods look like? On Dec 28, 11:15 am, Rob Wilkerson wrote: > On Mon, Dec 28, 2009 at 11:11 AM, Gábor Fási wrote: > > I guess you want this: > > > param: { module: page, action: show, domain_slug: whatever, slug: whatever2 > > } > > I've tried that, but I get an error. It seems that no parameters are > being passed to my custom request method (doSelectByDomain). The > parameter array is completely empty with this homepage route: > > homepage: > url: / > class: sfPropelRoute > param: { module: page, action: show, domain_slug: portal, slug: dashboard ) > } > options: > model: Page > type: object > method: doSelectByDomain > > -- > Rob Wilkersonhttp://robwilkerson.org > @robwilkerson -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: The user profile class "sfGuardUserProfile" does not exist.
On Dec 28, 2009, at 11:36 PM, Mohammed Rhamnia wrote: > Did u add this to your app.yml file : > all: > sf_guard_plugin: > profile_class: sfGuardUserProfile > profile_field_name: user_id AFAIK, he used the default class and field names and this is not necessary. > > 2009/12/28 Zeek > Sorom, what do you get if you do this: > > echo get_class($this->getUser()->getGuardUser()->getProfile()); > > Do you get an error when this is called? > > echo get_class($this->getUser()->getGuardUser()); > > If you look in lib/model do you see a sfGuardUserProfile class? It is > case sensitive. Be sure you do not have SfGuardUserProfile. > > > > On Dec 28, 3:52 pm, Sorom Uzomah wrote: > > Hello, > > > > I am using symfony 1.2.10 with sfGuardPlugin 3.1.3 , I have created a > > profile class sfGuardUserProfile through my schema.yml. When I try to use > > $this->getUser()->getGuardUser()->getProfile()->getId() in my action class > > as described in the readme file for sfGuardPlugin I get the following error > > > > The user profile class "sfGuardUserProfile" does not exist. > > even when I try to use the proxy method i get the same response. I've tried > > rebuilding my model and I've even run the propel:build-all as well as > > cleared my cache etc > > I believe its a simple solution but just cant get it to work. My schema.yml > > is below. Thanks for any help i can get. > > > > # config/schema.yml > > propel: > > sf_guard_user_profile: > > id: ~ > > user_id: { type: integer, foreignTable: sf_guard_user, > > foreignReference: id } > > title: { type: varchar(255) } > > last_name: { type: varchar(255) } > > first_name: { type: varchar(255) } > > middle_name: { type: varchar(255) } > > facebook_uid: { type: integer } > > email: { type: varchar(255) } > > email_hash: { type: varchar(255) } > > created_at: ~ > > updated_at: ~ > > > > description: > > id: ~ > > sf_guard_user_profile_id: { type: integer, foreignTable: > > sf_guard_user_profile, foreignReference: id } > > content: { type: longvarchar } > > range: { type: varchar(255) } #global, friends, hidden > > created_at: ~ > > updated_at: ~ > > > > comment: > > id: ~ > > description_id: { type: integer, foreignTable: description, > > foreignReference: id } > > content: { type: longvarchar } > > created_at: ~ > > updated_at: ~ > > > > picture: > > id: ~ > > description_id: { type: integer, foreignTable: description, > > foreignReference: id } > > name: { type: longvarchar } > > location: { type: longvarchar } > > created_at: ~ > > updated_at: ~ > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Veeeeeeeeeerry Strange Error with a form
On Mon, 28 Dec 2009, Dennis wrote: > When I use the dev environment, it works perfectly. I upload a file, I > can bind it, get the value, save the fiile to file system, VOILA, > build the original model in a new object, and save the URL for the > file's new location in the database. Love :-) > > When I run it in production mode, accessing the ...URL/new link > produces NO output, sends a 500 Server Error return code. Using die > statements, I found that it stops at the ONE line in 'executeNew' > function of the action class. Any 500 errors should be in your web server error logs. Are your prod and dev environment on different machines? If so, how did you deploy this app? Did you freeze the app before deploying? If you did, then Im assuming you rebuild models and forms and cleared cache? Need more data about your deployment to prod to do any troubleshooting. -- A -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: The user profile class "sfGuardUserProfile" does not exist.
Did u add this to your app.yml file : *all: sf_guard_plugin: profile_class: sfGuardUserProfile profile_field_name: user_id* 2009/12/28 Zeek > Sorom, what do you get if you do this: > > echo get_class($this->getUser()->getGuardUser()->getProfile()); > > Do you get an error when this is called? > > echo get_class($this->getUser()->getGuardUser()); > > If you look in lib/model do you see a sfGuardUserProfile class? It is > case sensitive. Be sure you do not have SfGuardUserProfile. > > > > On Dec 28, 3:52 pm, Sorom Uzomah wrote: > > Hello, > > > > I am using symfony 1.2.10 with sfGuardPlugin 3.1.3 , I have created a > profile class sfGuardUserProfile through my schema.yml. When I try to use > $this->getUser()->getGuardUser()->getProfile()->getId() in my action class > as described in the readme file for sfGuardPlugin I get the following error > > > > The user profile class "sfGuardUserProfile" does not exist. > > even when I try to use the proxy method i get the same response. I've > tried rebuilding my model and I've even run the propel:build-all as well as > cleared my cache etc > > I believe its a simple solution but just cant get it to work. My > schema.yml is below. Thanks for any help i can get. > > > > # config/schema.yml > > propel: > > sf_guard_user_profile: > > id: ~ > > user_id: { type: integer, foreignTable: sf_guard_user, > foreignReference: id } > > title: { type: varchar(255) } > > last_name: { type: varchar(255) } > > first_name: { type: varchar(255) } > > middle_name: { type: varchar(255) } > > facebook_uid: { type: integer } > > email: { type: varchar(255) } > > email_hash: { type: varchar(255) } > > created_at: ~ > > updated_at: ~ > > > > description: > > id: ~ > > sf_guard_user_profile_id: { type: integer, foreignTable: > sf_guard_user_profile, foreignReference: id } > > content: { type: longvarchar } > > range: { type: varchar(255) } #global, friends, hidden > > created_at: ~ > > updated_at: ~ > > > > comment: > > id: ~ > > description_id: { type: integer, foreignTable: description, > foreignReference: id } > > content: { type: longvarchar } > > created_at: ~ > > updated_at: ~ > > > > picture: > > id: ~ > > description_id: { type: integer, foreignTable: description, > foreignReference: id } > > name: { type: longvarchar } > > location: { type: longvarchar } > > created_at: ~ > > updated_at: ~ > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Veeeeeeeeeerry Strange Error with a form
Have you installed the sfErrorHandler plugin? http://www.symfony-project.org/plugins/sfErrorHandlerPlugin Symfony will swallow certain kinds of errors. For instance, passing parameters of the wrong type, when type hinting is in use. It is good to have that plugin installed. On Dec 28, 1:32 pm, Dennis wrote: > I have a project where I copied the guts of a Doctrine based form, > deleted all fields, added a simple file field, but kept the line with > 'getModelName' with the old model. Didn't think it would work it all, > but it does, sort of. > > When I use the dev environment, it works perfectly. I upload a file, I > can bind it, get the value, save the fiile to file system, VOILA, > build the original model in a new object, and save the URL for the > file's new location in the database. Love :-) > > When I run it in production mode, accessing the ...URL/new link > produces NO output, sends a 500 Server Error return code. Using die > statements, I found that it stops at the ONE line in 'executeNew' > function of the action class. > > $this->form = new > myNewFormNotBasedOnModelNameHasNoAssociatedObjectClass(); > > Now is where it gets wierd, wierd, wierd. I did the following tracing: > > Put a try/catch block around the line above . . . no exception gets > trapped. > Traced out all the Form Hierarchy: > MyNewForm... > BaseOldFormName... > BaseFormDoctrine... > sfFormDoctrine (has a constructor which calls the > parent::__constructor) > BaseForm... > sfFormSymfony (has a constructor which calls the > parent::__constructor) > sfForm (has a constructor) > > So I put an echo statement in the constructor of sfFormDoctrine, the > first constructor that should be encountered by PHP generating the > object, and folks, it never gets executed. Somewhere in building the > object hierarchy, php crashes, or some Symfony/Doctrine code throws an > exception. Now I have NO idea where that code might be, I don't think > there is any. It's just PHP creating an object and until executable > code is found in a constructor, there's nothing the code base can > affect. > > So, my next thing is to put a constructor in my new form and see if it > gets executed. Probably, I am going to have to switch to using sfForm > as my base class, 'cause it doesn't have to be based on a model > object, OR, I am going to have to make a model object, OR learn more > about file uploads :-) > > I'l post what I find is the error spot, but without a full blown > debugger, I think I"m just going to get lucky if I find it. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Veeeeeeeeeerry Strange Error with a form
> So I put an echo statement in the constructor of sfFormDoctrine, the > first constructor that should be encountered by PHP generating the > object, and folks, it never gets executed. Somewhere in building the > object hierarchy, php crashes, or some Symfony/Doctrine code throws an > exception. Now I have NO idea where that code might be, I don't think > there is any. It's just PHP creating an object and until executable > code is found in a constructor, there's nothing the code base can > affect. What do you see in the error log? Have you added any filters lately? The strangest bugs I've ever gotten with Symfony were when I badly implemented a Remember Me function, using a filter that interfered with a lot of other necessary code. Is this code that you need to be logged in to see? Have you cleared the cache? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Veeeeeeeeeerry Strange Error with a form
> When I run it in production mode, accessing the ...URL/new link > produces NO output, sends a 500 Server Error return code. Using die > statements, I found that it stops at the ONE line in 'executeNew' > function of the action class. Why use die statements? Why not use Symfony's logger? If you use die statements, then I assume you are looking at the results in your browser? That is not an accurate way to debug. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: The user profile class "sfGuardUserProfile" does not exist.
Sorom, what do you get if you do this: echo get_class($this->getUser()->getGuardUser()->getProfile()); Do you get an error when this is called? echo get_class($this->getUser()->getGuardUser()); If you look in lib/model do you see a sfGuardUserProfile class? It is case sensitive. Be sure you do not have SfGuardUserProfile. On Dec 28, 3:52 pm, Sorom Uzomah wrote: > Hello, > > I am using symfony 1.2.10 with sfGuardPlugin 3.1.3 , I have created a profile > class sfGuardUserProfile through my schema.yml. When I try to use > $this->getUser()->getGuardUser()->getProfile()->getId() in my action class as > described in the readme file for sfGuardPlugin I get the following error > > The user profile class "sfGuardUserProfile" does not exist. > even when I try to use the proxy method i get the same response. I've tried > rebuilding my model and I've even run the propel:build-all as well as cleared > my cache etc > I believe its a simple solution but just cant get it to work. My schema.yml > is below. Thanks for any help i can get. > > # config/schema.yml > propel: > sf_guard_user_profile: > id: ~ > user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: > id } > title: { type: varchar(255) } > last_name: { type: varchar(255) } > first_name: { type: varchar(255) } > middle_name: { type: varchar(255) } > facebook_uid: { type: integer } > email: { type: varchar(255) } > email_hash: { type: varchar(255) } > created_at: ~ > updated_at: ~ > > description: > id: ~ > sf_guard_user_profile_id: { type: integer, foreignTable: > sf_guard_user_profile, foreignReference: id } > content: { type: longvarchar } > range: { type: varchar(255) } #global, friends, hidden > created_at: ~ > updated_at: ~ > > comment: > id: ~ > description_id: { type: integer, foreignTable: description, > foreignReference: id } > content: { type: longvarchar } > created_at: ~ > updated_at: ~ > > picture: > id: ~ > description_id: { type: integer, foreignTable: description, > foreignReference: id } > name: { type: longvarchar } > location: { type: longvarchar } > created_at: ~ > updated_at: ~ -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Netbeans with symfony support: tasks without "sudo"
On Dec 27, 2:36 pm, tirengarfio wrote: > The only way i know to avoid writing "sudo" is logging in the > operative system as root. But i dont want to logging as root. > > Is there anyone more? > Log in as root and change the permissions so that you no longer have to log in as root to call the task. Isn't this how you would handle any permissions issue on our machine? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Netbeans with symfony support: tasks without "sudo"
Hi Nathan, this happens: i have done what you say and after that NB doesn't show the list of sf tasks when i go to Symfony > Run command. No problem without the change you propose. I tested 2 or 3 times. Javi On Dec 28, 9:50 pm, Nathan Bijnens wrote: > Hello Javi, > > Rename your symfony script in the project dir to symfony.real > > paste this to a new file called symfony > #!/bin/bash > > sudo symfony.real $@ > > that's about it. > > Warning this is not tested! This will not work in windows! > > regards, > Nathan > > On Mon, Dec 28, 2009 at 9:41 PM, tirengarfio wrote: > > Thanks! > > > On Dec 28, 3:21 pm, Nathan Bijnens wrote: > > > > You could maybe create a bash wrapper that calls sudo symfony? And put > > this > > > in the right path? > > > Could you more details ? > > > Javi > > > On Dec 28, 3:21 pm, Nathan Bijnens wrote: > > > This is a very bad idea...! Never run a program with more permissions > > than > > > it needs to have. > > > > You could maybe create a bash wrapper that calls sudo symfony? And put > > this > > > in the right path? > > > > Nathan > > > > On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu > > > wrote: > > > > > A stupid ideea: launch your nb using sudo. So, you do not need to exec > > your > > > > task using sudo :) > > > > Anyway, the chown is your friend. > > > > > sent via htc magic > > > > > On Dec 28, 2009 3:52 PM, "mattsister" wrote: > > > > > My question is: > > > > Why you have to be super user to deal with your own code? I think you > > > > should change the ownership of the project folder and make it > > > > yours!!! :) > > > > > On 27 Dic, 19:51, tirengarfio wrote: > Hi, > > > > i > > > > have installed Netbeans wi... > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "symfony users" group. > > > > To post to this group, send email to symfony-us...@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. > > > -- > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] The user profile class "sfGuardUserProfile" does not exist.
Hello, I am using symfony 1.2.10 with sfGuardPlugin 3.1.3 , I have created a profile class sfGuardUserProfile through my schema.yml. When I try to use $this->getUser()->getGuardUser()->getProfile()->getId() in my action class as described in the readme file for sfGuardPlugin I get the following error The user profile class "sfGuardUserProfile" does not exist. even when I try to use the proxy method i get the same response. I've tried rebuilding my model and I've even run the propel:build-all as well as cleared my cache etc I believe its a simple solution but just cant get it to work. My schema.yml is below. Thanks for any help i can get. # config/schema.yml propel: sf_guard_user_profile: id: ~ user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id } title: { type: varchar(255) } last_name: { type: varchar(255) } first_name: { type: varchar(255) } middle_name: { type: varchar(255) } facebook_uid: { type: integer } email: { type: varchar(255) } email_hash: { type: varchar(255) } created_at: ~ updated_at: ~ description: id: ~ sf_guard_user_profile_id: { type: integer, foreignTable: sf_guard_user_profile, foreignReference: id } content: { type: longvarchar } range: { type: varchar(255) } #global, friends, hidden created_at: ~ updated_at: ~ comment: id: ~ description_id: { type: integer, foreignTable: description, foreignReference: id } content: { type: longvarchar } created_at: ~ updated_at: ~ picture: id: ~ description_id: { type: integer, foreignTable: description, foreignReference: id } name: { type: longvarchar } location: { type: longvarchar } created_at: ~ updated_at: ~ -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Netbeans with symfony support: tasks without "sudo"
Hello Javi, Rename your symfony script in the project dir to symfony.real paste this to a new file called symfony #!/bin/bash sudo symfony.real $@ that's about it. Warning this is not tested! This will not work in windows! regards, Nathan On Mon, Dec 28, 2009 at 9:41 PM, tirengarfio wrote: > Thanks! > > On Dec 28, 3:21 pm, Nathan Bijnens wrote: > > > You could maybe create a bash wrapper that calls sudo symfony? And put > this > > in the right path? > > Could you more details ? > > Javi > > > On Dec 28, 3:21 pm, Nathan Bijnens wrote: > > This is a very bad idea...! Never run a program with more permissions > than > > it needs to have. > > > > You could maybe create a bash wrapper that calls sudo symfony? And put > this > > in the right path? > > > > Nathan > > > > On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu > > wrote: > > > > > A stupid ideea: launch your nb using sudo. So, you do not need to exec > your > > > task using sudo :) > > > Anyway, the chown is your friend. > > > > > sent via htc magic > > > > > On Dec 28, 2009 3:52 PM, "mattsister" wrote: > > > > > My question is: > > > Why you have to be super user to deal with your own code? I think you > > > should change the ownership of the project folder and make it > > > yours!!! :) > > > > > On 27 Dic, 19:51, tirengarfio wrote: > Hi, > > > i > > > have installed Netbeans wi... > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "symfony users" group. > > > To post to this group, send email to symfony-us...@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. > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Netbeans with symfony support: tasks without "sudo"
Hi, You should really avoir loging in as root, and see why you need to. If this is real IS problem, ok. If it's just a permission right need, then just move your configuration statements from /var/www to /home/$user/www, a place where you can read/write/execute whatever. About wrapping calls: you'll have to write your own shell script being callable from command line (accessible from PATH), write to it something like "sudo $1" and tell netbeans to use this file in NB Symfony config tab. Cheers Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Dec 28, 2009 at 9:41 PM, tirengarfio wrote: > Thanks! > > On Dec 28, 3:21 pm, Nathan Bijnens wrote: > > > You could maybe create a bash wrapper that calls sudo symfony? And put > this > > in the right path? > > Could you more details ? > > Javi > > > On Dec 28, 3:21 pm, Nathan Bijnens wrote: > > This is a very bad idea...! Never run a program with more permissions > than > > it needs to have. > > > > You could maybe create a bash wrapper that calls sudo symfony? And put > this > > in the right path? > > > > Nathan > > > > On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu > > wrote: > > > > > A stupid ideea: launch your nb using sudo. So, you do not need to exec > your > > > task using sudo :) > > > Anyway, the chown is your friend. > > > > > sent via htc magic > > > > > On Dec 28, 2009 3:52 PM, "mattsister" wrote: > > > > > My question is: > > > Why you have to be super user to deal with your own code? I think you > > > should change the ownership of the project folder and make it > > > yours!!! :) > > > > > On 27 Dic, 19:51, tirengarfio wrote: > Hi, > > > i > > > have installed Netbeans wi... > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "symfony users" group. > > > To post to this group, send email to symfony-us...@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. > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Netbeans with symfony support: tasks without "sudo"
Thanks! On Dec 28, 3:21 pm, Nathan Bijnens wrote: > You could maybe create a bash wrapper that calls sudo symfony? And put this > in the right path? Could you more details ? Javi On Dec 28, 3:21 pm, Nathan Bijnens wrote: > This is a very bad idea...! Never run a program with more permissions than > it needs to have. > > You could maybe create a bash wrapper that calls sudo symfony? And put this > in the right path? > > Nathan > > On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu > wrote: > > > A stupid ideea: launch your nb using sudo. So, you do not need to exec your > > task using sudo :) > > Anyway, the chown is your friend. > > > sent via htc magic > > > On Dec 28, 2009 3:52 PM, "mattsister" wrote: > > > My question is: > > Why you have to be super user to deal with your own code? I think you > > should change the ownership of the project folder and make it > > yours!!! :) > > > On 27 Dic, 19:51, tirengarfio wrote: > Hi, > > i > > have installed Netbeans wi... > > > -- > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] execute module through php command line
You should create "tasks" (symfony speaking) and bridge them for execution using cron and using actions for web (if you want both so). Anyway you still can create a task for launching web requests (why not using lime2 to check browser response for error catching). If you really want cron and web attack, you should put the logic in a class of itself -not task, not action- so you can call it easily from task or action -DRY. Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Dec 28, 2009 at 9:30 PM, Andrei Dziahel wrote: > Hi. > > You are doing it wrong. Extract these functions to dedicated tasks and run > *them* with cron or whatever. > > Nevertheless, you still can shoot yourself in a foot by putting into cron > something like > >> ...time... curl >> > > 2009/12/28 Joshua > > I've set up a module in my frontend application and the actions.class.php >> has different functions intended to be run in a cron. I can run these >> functions in the browser by going to the path >> domain.com/cron_module/function >> >> How can I set this up command line so a cron can run these functions? >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "symfony users" group. >> To post to this group, send email to symfony-us...@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. >> >> >> > > > -- > With the best regards, Andrei. > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] execute module through php command line
Hi. You are doing it wrong. Extract these functions to dedicated tasks and run * them* with cron or whatever. Nevertheless, you still can shoot yourself in a foot by putting into cron something like > ...time... curl > 2009/12/28 Joshua > I've set up a module in my frontend application and the actions.class.php > has different functions intended to be run in a cron. I can run these > functions in the browser by going to the path > domain.com/cron_module/function > > How can I set this up command line so a cron can run these functions? > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- With the best regards, Andrei. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] execute module through php command line
I've set up a module in my frontend application and the actions.class.php has different functions intended to be run in a cron. I can run these functions in the browser by going to the path domain.com/cron_module/function How can I set this up command line so a cron can run these functions? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: How to use Filter Forms without Admin Generator?
hi, maybe these links can be interesting for someone: http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/ http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-ii/ Are in spanish... Anyway, any reason for not implementing the "Filter" button functionality? Javi On Dec 11, 11:03 am, cosmy wrote: > Interesting topic.. would you mind posting the solution when you have > done? > Thnak you in advance > > On 10 Dic, 08:48, Christopher Schnell wrote: > > > Yeah, I thought so. But I can use the fieldset of the filter form > > anyway. I was mainly curious because the form filters are nowhere > > described, and I use filters to let the user select the records quite > > often. So it would have come handy earlier, but i just didn't know how > > to use them. > > > Maybe I could make a documentation request :-) > > > Regards, > > Christopher. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Veeeeeeeeeerry Strange Error with a form
I have a project where I copied the guts of a Doctrine based form, deleted all fields, added a simple file field, but kept the line with 'getModelName' with the old model. Didn't think it would work it all, but it does, sort of. When I use the dev environment, it works perfectly. I upload a file, I can bind it, get the value, save the fiile to file system, VOILA, build the original model in a new object, and save the URL for the file's new location in the database. Love :-) When I run it in production mode, accessing the ...URL/new link produces NO output, sends a 500 Server Error return code. Using die statements, I found that it stops at the ONE line in 'executeNew' function of the action class. $this->form = new myNewFormNotBasedOnModelNameHasNoAssociatedObjectClass(); Now is where it gets wierd, wierd, wierd. I did the following tracing: Put a try/catch block around the line above . . . no exception gets trapped. Traced out all the Form Hierarchy: MyNewForm... BaseOldFormName... BaseFormDoctrine... sfFormDoctrine (has a constructor which calls the parent::__constructor) BaseForm... sfFormSymfony (has a constructor which calls the parent::__constructor) sfForm (has a constructor) So I put an echo statement in the constructor of sfFormDoctrine, the first constructor that should be encountered by PHP generating the object, and folks, it never gets executed. Somewhere in building the object hierarchy, php crashes, or some Symfony/Doctrine code throws an exception. Now I have NO idea where that code might be, I don't think there is any. It's just PHP creating an object and until executable code is found in a constructor, there's nothing the code base can affect. So, my next thing is to put a constructor in my new form and see if it gets executed. Probably, I am going to have to switch to using sfForm as my base class, 'cause it doesn't have to be based on a model object, OR, I am going to have to make a model object, OR learn more about file uploads :-) I'l post what I find is the error spot, but without a full blown debugger, I think I"m just going to get lucky if I find it. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: plugin:install not working for 1.3/1.4?
I have exactly the same error as mentionned by Kevin. Hope this is already repaired or to be done soon... -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Passing Params to Routes
On Mon, Dec 28, 2009 at 11:11 AM, Gábor Fási wrote: > I guess you want this: > > param: { module: page, action: show, domain_slug: whatever, slug: whatever2 } I've tried that, but I get an error. It seems that no parameters are being passed to my custom request method (doSelectByDomain). The parameter array is completely empty with this homepage route: homepage: url: / class: sfPropelRoute param: { module: page, action: show, domain_slug: portal, slug: dashboard ) } options: model: Page type: object method: doSelectByDomain -- Rob Wilkerson http://robwilkerson.org @robwilkerson -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Passing Params to Routes
I guess you want this: param: { module: page, action: show, domain_slug: whatever, slug: whatever2 } On Mon, Dec 28, 2009 at 14:17, Rob Wilkerson wrote: > I have a defined route that displays a dynamic page: > > page_show: > url: /:domain_slug/:slug > class: sfPropelRoute > options: > model: Page > type: object > method: doSelectByDomain > param: { module: page, action: show } > requirements: > sf_method: [get] > > This works great, but now I want my homepage URI to route to a > specific page. To do that, I assume that I have to pass > the :domain_slug and :slug values of the page I want to display as the > homepage. That's fine, but I can't seem to track down any > documentation or example that shows me how to go about doing that. Is > it possible to specify specific variable values in a route? > > Thanks. > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?
I need a form in which I will have so many checkboxes as rows in table. I know how I can do that in normal php (code in my first post), but I don't know how/should I do that using Symfony forms ? Do you understand ? xD On 28 Gru, 14:56, DEEPAK BHATIA wrote: > I generally use remote function for the same. > > true, > 'onchange'=> remote_function(array('update' => 'common_area','url' => > 'home/homeselectdate','script' => true,'with'=>"'id='+this.value"; ?> > > true, > 'onchange'=> remote_function(array('update' => 'common_area','url' => > 'home/homeselectdate','script' => true,'with'=>"'id='+this.value"; ?> > > http://www.symfony-project.org/api/1_0/FormHelper > > On Mon, Dec 28, 2009 at 2:12 PM, dziobacz wrote: > > I would like to approve comments clicking on checkboxes using AJAX > > (without refreshing page). > > Screen is here:http://forum.symfony-project.org/index.php/t/24537/ > > So as you can see above now I have checkboxes - each checkbox is a one > > row from table - so I must write in view: > > > > > > foreach($comments as $c) > > { > > echo " > value='".$c->getId > > ()."'"; > > if($c->getApproved() == 1) echo "checked='checked'"; > > echo " />"; > > echo $c->getComment(); > > } > > ?> > > > > > Is it the best solution ? Maybe I should create this form using > > Symfony forms in catalog /form ? But in that case I will have to pass > > $this->comments to Symfony form and then create one checkbox per one > > row using loop, so I don't know if it is possible in Symfony forms and > > I don't know if I should in that case using Symfony forms ? > > > -- > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@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. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Is it possible to define a sfPropelRoute with multiple objects??
Is there any sfPropelRouteCollection ? But collection routes are for same classes. One RouteCollection for model class "Product" will be usable only for "Product". Anyway you can put "parts" in the url (using :my_field). Check docs about routing and advanced routing. Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Dec 28, 2009 at 12:45 AM, david wrote: > Hi, > I am defining all routes for a directory web site. While browsing the > directory I need to pass trough url multiple objects (category, > article, location). Is it possible to define sfPropel Routes to work > with multiple objects in the URL. If so, please, could give an example > of routing.yml and how to get all objects in the action, please. I > have made it to work for one object (category) but don't know how for > multiple values. > > Already looked in Google with no results ;). > > Thanks!! > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] about irc channel of symfony user
Hello, Just open your favorite irc client, connect to irc.freenode.net (using "/s irc.freenode.net") then join the symfony channel /join #symfony Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Dec 28, 2009 at 11:19 AM, mbello wrote: > hi > have the irc client irc and i want to join the irc channel of symfony > user but i dont know how can do to do it > tanks in advance > mbello > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Netbeans with symfony support: tasks without "sudo"
This is a very bad idea...! Never run a program with more permissions than it needs to have. You could maybe create a bash wrapper that calls sudo symfony? And put this in the right path? Nathan On Mon, Dec 28, 2009 at 3:14 PM, Alexandru-Emil Lupu wrote: > A stupid ideea: launch your nb using sudo. So, you do not need to exec your > task using sudo :) > Anyway, the chown is your friend. > > sent via htc magic > > On Dec 28, 2009 3:52 PM, "mattsister" wrote: > > My question is: > Why you have to be super user to deal with your own code? I think you > should change the ownership of the project folder and make it > yours!!! :) > > On 27 Dic, 19:51, tirengarfio wrote: > Hi, > > i > have installed Netbeans wi... > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] about irc channel of symfony user
hi have the irc client irc and i want to join the irc channel of symfony user but i dont know how can do to do it tanks in advance mbello -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Is it possible to define a sfPropelRoute with multiple objects??
Hi, I am defining all routes for a directory web site. While browsing the directory I need to pass trough url multiple objects (category, article, location). Is it possible to define sfPropel Routes to work with multiple objects in the URL. If so, please, could give an example of routing.yml and how to get all objects in the action, please. I have made it to work for one object (category) but don't know how for multiple values. Already looked in Google with no results ;). Thanks!! -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: How to delete uploaded images when deleting records
I have another problem, when i update the record, then the old photo isn't deleted itself, but it remain in the filesystem. How can i delete the old photo or replace it with the new photo? I try: public function postUpdate($event) { @unlink(sfConfig::get('sf_upload_dir').'/immobili/original/'.$this- >fotoPrincipale); @unlink(sfConfig::get('sf_upload_dir').'/immobili/big/'.$this- >fotoPrincipale); @unlink(sfConfig::get('sf_upload_dir').'/immobili/thumbnail/'.$this- >fotoPrincipale); } but I think that $this->fotoPrincipale refers to the new values, how can i refer to the old values in the table? Thanks to all! On 28 Dic, 12:28, ilcaduceo wrote: > I try the code and it's correct! I understand that this method is in > the Doctrine documentation, and also I found other useful methods... > Thanks! > > On 24 Dic, 22:15, ilcaduceo wrote: > > > Yes i'm storing file paths in the database and the photos in the > > filesystem... I'm using Doctrine but i don't find any information > > about postDelete method in the documentation, however I try this > > code... Happy Holydays! > > > On 24 Dic, 12:52, Alexandru-Emil Lupu wrote: > > > > If you are using sf 1.3 or. 1.4, then you have postDelete hook in your > > > propel > > > > sent via htc magic > > > > On Dec 24, 2009 4:48 AM, "Serkan Koyuncu" > > > wrote: > > > > Hi, > > > If you're using Doctrine, you can create > > > > public function postDelete($event) { > > > > �...@unlink(sfConfig::get('sf_upload_dir').'/immobili/original/'.$this->fotoPrincipale); > > > > @unlink(sfConfig::get('sf_upload_dir').'/immobili/big/'.$this->fotoPrincipale); > > > } > > > > in your model file. > > > If you're using Propel, you can extend delete method of your model > > > file or create another behaviour. > > > > Thanks. > > > > 2009/12/23 ilcaduceo : > > > > > Hi all, I've a simple form with sfFormWidgetInputFileEditable for > > > > > simple > > > > upload of photos: > > $... -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Netbeans with symfony support: tasks without "sudo"
A stupid ideea: launch your nb using sudo. So, you do not need to exec your task using sudo :) Anyway, the chown is your friend. sent via htc magic On Dec 28, 2009 3:52 PM, "mattsister" wrote: My question is: Why you have to be super user to deal with your own code? I think you should change the ownership of the project folder and make it yours!!! :) On 27 Dic, 19:51, tirengarfio wrote: > Hi, > > i have installed Netbeans wi... -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Symfony 1.3 - Range year
In my opinion, I don't think that is suitable use a calendar widget to choose a birth date. It should be used to choose a date in the near past or in the near future, and for forms where the date is not sure, so the user need a calendar to make a choice. I think that picking your birth date is always faster with 3 normal select. And, if it's the only date field in the form, you save so many kb of data, and a little less js on the page. And it will be easy to understand for anyone, also without any "form completion" skills. On 27 Dic, 14:41, Daniel Lohse wrote: > Google is your friend: > > http://www.google.com/search?client=safari&rls=en&q=symfony+year+rang... > > And it's also documented in Appendix A of the "symfony forms" book: > > http://www.symfony-project.org/forms/1_2/en/A-Widgets#chapter_a_sub_s... > > And you'll also want to have a look at Appendix B (Validators), especially > when you want to restrict to a minimum date and a maximum date: > > http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_su... > > Cheers, Daniel > > On Dec 27, 2009, at 2:23 PM, Vincent UNG wrote: > > > I already use it with sfFromExtraPlugin, a symfony plugin that let me > > to use datepicker of jQuery UI > > In the widget class, I set option changeMonth, and changeYear as true. > > and I set the option yearRange as '1980:2010' doesn't work... > > > -- > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?
I generally use remote function for the same. true, 'onchange'=> remote_function(array('update' => 'common_area','url' => 'home/homeselectdate','script' => true,'with'=>"'id='+this.value"; ?> true, 'onchange'=> remote_function(array('update' => 'common_area','url' => 'home/homeselectdate','script' => true,'with'=>"'id='+this.value"; ?> http://www.symfony-project.org/api/1_0/FormHelper On Mon, Dec 28, 2009 at 2:12 PM, dziobacz wrote: > I would like to approve comments clicking on checkboxes using AJAX > (without refreshing page). > Screen is here: http://forum.symfony-project.org/index.php/t/24537/ > So as you can see above now I have checkboxes - each checkbox is a one > row from table - so I must write in view: > > > foreach($comments as $c) >{ >echo " value='".$c->getId > ()."'"; >if($c->getApproved() == 1) echo "checked='checked'"; >echo " />"; >echo $c->getComment(); >} > ?> > > > Is it the best solution ? Maybe I should create this form using > Symfony forms in catalog /form ? But in that case I will have to pass > $this->comments to Symfony form and then create one checkbox per one > row using loop, so I don't know if it is possible in Symfony forms and > I don't know if I should in that case using Symfony forms ? > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Netbeans with symfony support: tasks without "sudo"
My question is: Why you have to be super user to deal with your own code? I think you should change the ownership of the project folder and make it yours!!! :) On 27 Dic, 19:51, tirengarfio wrote: > Hi, > > i have installed Netbeans with symfony support. > > As maybe you know with this support you can execute the symfony tasks > from Netbeans. > > The problem: the tasks are executed without the "sudo" before, so the > errors appear.. > > Any solution? > > Bye > > Javi -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?
I need a form in which I will have so many checkboxes as rows in table. I know how I can do that in normal php (code in my first post), but I don't know how/should I do that using Symfony forms ? Do you understand ? xD On 28 Gru, 14:15, ScherlOMatic wrote: > Hi, > > maybe you could explain us a little bit more, cause I couldn't > imagine what you want to do. > > So please describe the scenario. > > On 28 Dez., 09:42, dziobacz wrote: > > > I would like to approve comments clicking on checkboxes using AJAX > > (without refreshing page). > > Screen is here:http://forum.symfony-project.org/index.php/t/24537/ > > So as you can see above now I have checkboxes - each checkbox is a one > > row from table - so I must write in view: > > > > > > foreach($comments as $c) > > { > > echo " > value='".$c->getId > > ()."'"; > > if($c->getApproved() == 1) echo "checked='checked'"; > > echo " />"; > > echo $c->getComment(); > > } > > ?> > > > > > Is it the best solution ? Maybe I should create this form using > > Symfony forms in catalog /form ? But in that case I will have to pass > > $this->comments to Symfony form and then create one checkbox per one > > row using loop, so I don't know if it is possible in Symfony forms and > > I don't know if I should in that case using Symfony forms ? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] Passing Params to Routes
I have a defined route that displays a dynamic page: page_show: url: /:domain_slug/:slug class: sfPropelRoute options: model: Page type: object method: doSelectByDomain param: { module: page, action: show } requirements: sf_method: [get] This works great, but now I want my homepage URI to route to a specific page. To do that, I assume that I have to pass the :domain_slug and :slug values of the page I want to display as the homepage. That's fine, but I can't seem to track down any documentation or example that shows me how to go about doing that. Is it possible to specify specific variable values in a route? Thanks. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?
Hi, maybe you could explain us a little bit more, cause I couldn't imagine what you want to do. So please describe the scenario. On 28 Dez., 09:42, dziobacz wrote: > I would like to approve comments clicking on checkboxes using AJAX > (without refreshing page). > Screen is here:http://forum.symfony-project.org/index.php/t/24537/ > So as you can see above now I have checkboxes - each checkbox is a one > row from table - so I must write in view: > > > foreach($comments as $c) > { > echo " if($c->getApproved() == 1) echo "checked='checked'"; > echo " />"; > echo $c->getComment(); > } > ?> > > > Is it the best solution ? Maybe I should create this form using > Symfony forms in catalog /form ? But in that case I will have to pass > $this->comments to Symfony form and then create one checkbox per one > row using loop, so I don't know if it is possible in Symfony forms and > I don't know if I should in that case using Symfony forms ? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: Error using sfFacebookConnectPlugin and sfGuardPlugin
Yes, i'm testing on an internet-accessible server. I will see if there's something wrong on the configuration of the application on facebook. Thank's On 24 dic, 17:00, Fabrice Bernhard wrote: > Are you testing on an internet-accessible server ? To get the Facebook > uid, you need Facebook servers to see your server. > > Fabrice > > On Dec 21, 6:32 pm, Andrés Cristi wrote: > > > > > Currently i'm having a similar problem. > > I'm working with symfony 1.4+sfDoctrineGuardPlugin. > > My problem is that the the user seems to be null, so when it is saved > > to the database, the username is saved like Facebook_, when it should > > be something like "Facebook_".$FacebookUserId. > > I've read the documentation from the advent calendar and i still > > haven't found how to solve this. > > > Cheers, > > Andrés > > > On 8 dic, 23:27, Hardeep Khehra wrote: > > > > Not sure what I'm doing wrong, but for starters i'm beginning a fresh > > > project using symfony 1.4, but I can't get this plugin to work for the > > > life of me. > > > > I've followed all the instructions and cannot get this plugin to work > > > using sfDoctrineGuardPlugin. > > > > The facebook dialog appears and i can log into facebook, but the user > > > is never added to the database. > > > > I installed the plugin by downloading the packaging and unzipping to > > > the plugins folder. > > > > On Dec 8, 7:46 am, Fabrice Bernhard wrote: > > > > > Hi Zach, > > > > > You don't need any sfFacebookConnect filters in a standard > > > > implementation. > > > > > Better documentation will soon be online as part of the symfony 2009 > > > > advent calendar :-) > > > > > Cheers, > > > > > Fabrice > > > > --http://www.theodo.fr > > > > > On Dec 8, 7:28 am, Alexandre Salomé > > > > wrote: > > > > > > Hi, > > > > > > You should contact the author of the plugin to have more > > > > > informations, or > > > > > look for a README file or an INSTALL file. > > > > > > Alexandre > > > > > > 2009/12/7 Zach > > > > > > > I have run into another error... > > > > > > > I am running the sfFacebookConnectDemo. It prompts me to connect, I > > > > > > enter my facebook email and password, click connect, and I get this > > > > > > error: > > > > > > > Strict Standards: Non-static method > > > > > > sfFacebookGuardAdapter::getUserProfileProperty() should not be > > > > > > called > > > > > > statically, assuming $this from incompatible context in /var/www/ > > > > > > losebig/plugins/sfFacebookConnectPlugin/lib/ > > > > > > sfFacebookApplicationFilter.class.php on line 25 > > > > > > > Fatal error: Cannot call abstract method > > > > > > sfFacebookGuardAdapter::getUserProfileProperty() in > > > > > > /var/www/losebig/ > > > > > > plugins/sfFacebookConnectPlugin/lib/ > > > > > > sfFacebookApplicationFilter.class.php on line 25 > > > > > > > If I refresh the page, it says "Welcome Zach Fry" and has my > > > > > > facebook > > > > > > profile picture. I'm not sure how I am supposed implement the > > > > > > filters, > > > > > > and wondered if someone could show me what the filters.yml file is > > > > > > supposed to look like. I don't really know where my problem lies, > > > > > > but > > > > > > I thought it might be the filters since I didn't know what I was > > > > > > doing > > > > > > when I implemented those. here is my current file: > > > > > > > rendering: ~ > > > > > > web_debug: ~ > > > > > > > facebook_connect: > > > > > > class: sfFacebookConnectFilter > > > > > > > security: > > > > > > class: sfGuardBasicSecurityFilter > > > > > > > facebook_application: > > > > > > class: sfFacebookApplicationFilter > > > > > > > sfFacebookConnectRememberMe: > > > > > > class: sfFacebookConnectRememberMeFilter > > > > > > > #sfFacebookSecurity: > > > > > > # class: sfFacebookSecurityFilter > > > > > > > cache: ~ > > > > > > common: ~ > > > > > > flash: ~ > > > > > > execution: ~ > > > > > > > Thanks for your help. > > > > > > I've been struggling getting all this to work right. > > > > > > > On Dec 3, 5:27 pm, Fabrice Bernhard wrote: > > > > > > > Great you managed to solve your problem, although it would have > > > > > > > been > > > > > > > nice to actually see what you did wrong. > > > > > > > > Cheers, > > > > > > > > Fabrice > > > > > > > --http://www.theodo.fr > > > > > > > -- > > > > > > > You received this message because you are subscribed to the Google > > > > > > Groups > > > > > > "symfony users" group. > > > > > > To post to this group, send email to symfony-us...@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. > > > > > > -- > > > > > Alexandre Salomé -- alexandre.sal...@gmail.com- Hide quoted text - > > > > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups
[symfony-users] Next Top Symfony's Tutorials
Results for now : http://spreadsheets.google.com/viewanalytics?formkey=dEg5anBBdnViR01iS2dIbW1ZYjI2RlE6MA -- Cr. Puentes Diaz MP 10.12726.9 Córdoba - Argentina www.puentesdiaz.com.ar/blog/ www.puentesdiaz.com.ar/blog/novedades www.twitter.com/puentesdiaz Linux User n° 441474 Ubuntu/Symfony/Eclipse Rocks! Sign for Free License for Project Zero http://www.petitiononline.com/zerogpl/ -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: How to delete uploaded images when deleting records
I try the code and it's correct! I understand that this method is in the Doctrine documentation, and also I found other useful methods... Thanks! On 24 Dic, 22:15, ilcaduceo wrote: > Yes i'm storing file paths in the database and the photos in the > filesystem... I'm using Doctrine but i don't find any information > about postDelete method in the documentation, however I try this > code... Happy Holydays! > > On 24 Dic, 12:52, Alexandru-Emil Lupu wrote: > > > If you are using sf 1.3 or. 1.4, then you have postDelete hook in your > > propel > > > sent via htc magic > > > On Dec 24, 2009 4:48 AM, "Serkan Koyuncu" wrote: > > > Hi, > > If you're using Doctrine, you can create > > > public function postDelete($event) { > > > �...@unlink(sfConfig::get('sf_upload_dir').'/immobili/original/'.$this->fotoPrincipale); > > > @unlink(sfConfig::get('sf_upload_dir').'/immobili/big/'.$this->fotoPrincipale); > > } > > > in your model file. > > If you're using Propel, you can extend delete method of your model > > file or create another behaviour. > > > Thanks. > > > 2009/12/23 ilcaduceo : > > > > Hi all, I've a simple form with sfFormWidgetInputFileEditable for > simple > > > upload of photos: > > $... -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?
I would like to approve comments clicking on checkboxes using AJAX (without refreshing page). Screen is here: http://forum.symfony-project.org/index.php/t/24537/ So as you can see above now I have checkboxes - each checkbox is a one row from table - so I must write in view: getId ()."'"; if($c->getApproved() == 1) echo "checked='checked'"; echo " />"; echo $c->getComment(); } ?> Is it the best solution ? Maybe I should create this form using Symfony forms in catalog /form ? But in that case I will have to pass $this->comments to Symfony form and then create one checkbox per one row using loop, so I don't know if it is possible in Symfony forms and I don't know if I should in that case using Symfony forms ? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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: sfDoctrineGuard translation
For your example it's pretty clear that symfony can't find the translations. And sure enough, you forgot to add the catalogue to the __() method call. Plugin or not, it doesn't matter. In the signinSuccess.php change this: __('Forgot your password?') to this: __('Forgot your password?', array(), 'sf_admin') and it should work. Cheers, Daniel On Dec 28, 2009, at 1:43 AM, diogobaeder wrote: > Daniel, > > For example, in the signinSuccess.php template, at > sfDoctrineGuardPlugin, we have a "__('Forgot your password?')" call, > that should be translated if a translation is put in the > sf_admin.pt_BR.xml file. I've put a translation element there, but > it's not working. But for a translation for a gettext function call in > the Symfony core, for example a "__('Choose an action')" call (the > first for the at the bottom of the admin list > actions), it works. > > So, if I have: > > >Choose an action >Selecione uma ação > > >Forgot your password? >Esqueceu sua senha? > > > The first translation is working, but the second is not. I realized > that the second is used in a plugin, so that's why I thought it could > be something with how the translations relate to plugins. > > Any ideas? > > Diogo > > > > On 27 dez, 12:12, Daniel Lohse wrote: >> Could you elaborate on/rephrase your last message again, please? >> I did not understand what stays where and does not get translated... :) >> >> Daniel >> >> On Dec 27, 2009, at 2:57 PM, diogobaeder wrote: >> >>> Hi, Daniel, >> >>> I've already named the file like you said, and part of the admin is >>> translated. But the part that stays in the plugins (sfDoctrineGuard >>> and sfMediaBrowser) is not translated. It seems like the translation >>> file I created only works with translation for the core components. >> >>> Any other idea? >> >>> Thanks! >> >>> On 27 dez, 08:44, Daniel Lohse wrote: You'll need to name the file sf_admin.pt_BR.xml >> Cheers, Daniel >> On Dec 27, 2009, at 3:30 AM, diogobaeder wrote: >> > No solution for that? Anybody? >> > On 22 dez, 18:04, Diogo Baeder wrote: >> Hi there, >> >> I'm translating some strings that lacked in the original pt_BR XLIFF >> file for Symfony 1.4.2-DEV. Even though, my translation for >> sfDoctrineGuardPlugin is not working; None of them is being read. >> >> How can I translating the plugin, so that the authentication screen and >> messages stay in my language? (Brazillian Portuguese.) >> >> Thanks! >> >> -- >> Diogo Baeder - desenvolvedor webhttp://diogobaeder.com.br >> > -- >> > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en. >> >>> -- >> >>> You received this message because you are subscribed to the Google Groups >>> "symfony users" group. >>> To post to this group, send email to symfony-us...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> symfony-users+unsubscr...@googlegroups.com. >>> For more options, visit this group >>> athttp://groups.google.com/group/symfony-users?hl=en. > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@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. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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.