[symfony-users] Re: Multiple File Uploads in Embed Form
thx! which book contains this topic? On ápr. 14, 23:37, Sela Yair tzi...@gmail.com wrote: did you read the more symfony book? there's an example how to upload multiple photos. On 14 April 2010 18:26, saki sakrame...@gmail.com wrote: hi girls, guys... i would like to implement a multiple file upload function on my page. a lot of modules will use it, so i would like to store all the files in a folder and in one table! i created an upload module and a table for it... id - automatic filename - original filename module - which module uploaded it entityid - who owns the file (for example: module: user, entityid: 6 means this file is related to the #6 user.) created_at updated_at However in the UploadForm.class I did not deal with these attributes, because they will come from the uploaded file (filename) and from url (module name, entityid). In the UploadForm.class I only created 10 file input fields: for($i=1; $i=10; $i++) { $this-widgetSchema['upload'.$i] = new sfWidgetFormInputFile(array()); $this-validatorSchema['upload'.$i] = new sfValidatorFile(array()) } Now, I tried to embed this form to another form: $form = new UploadForm(); unset($form['created_at'], $form['updated_at'], $form['module'], $form['entityid'], $form['filename']); $this-embedForm(upload_fields, $form); Ok, I browsed some file and clicked Save. The parent form was saved successful, but the embed upload form created an empty row in the database very logically, it could not add any useful data to the table. How can I solve this? Unfortunately, I don't know where i can overwrite the save function of the upload form... I know how to save/ store the files with symfony(i've already created a single upload field), but I don't know where to modify the saving process of the upload form to store more lines in the table. Thank you so 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: iocombiner plugin : activation procedure ?
Ok, thanks. So, I'm not so sure of where this plugin benefits in my use. I've loaded my test page in opera to trigger the minifying process, and then loaded it again in firefox with firebug. It showed that the loading of the combine.js file took nearly 2s. Isn't there a way to reuse symfony's cache ? app.yml io_combiner_plugin: enabled:true # enable or disable the combiner response_class: ioCombinerResponse combiner_class: ioCombiner expires_days: 30 web_debug_panel:false stylesheets:[common.css, frontend.css, jquery.alerts.css] javascripts:[jquery.js, jquery.alerts.js, jquery.iufm.js] view.yml: stylesheets: [common.css, frontend.css,jquery.alerts.css] javascripts:[jquery.js,jquery.alerts.js, jquery.iufm.js] Regards, Mikael On 14 avr, 16:05, weaverryan weaverr...@gmail.com wrote: Hey Mikael- Yes, this is a mistake in the documentation - I apologize. You're absolutely right to include the combiner_include_stylesheets() and combiner_include_javascripts() in your layout, in place of the normal functions. Thanks! On Apr 14, 2:13 am, Mikael mikael.kermorg...@gmail.com wrote: Hello, I'd like to use iocombiner for our symfony 1.4 project. I've followed the doc but the only way to see combine.css and combine.js requested in firebug is to replace include_stylesheets() by combiner_include_stylesheets() in my layout.php Is this the right way to procede ? Regards, Mikael Kermorgant -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
Re: [symfony-users] Re: Multiple File Uploads in Embed Form
http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms On 15 April 2010 09:27, saki sakrame...@gmail.com wrote: thx! which book contains this topic? On ápr. 14, 23:37, Sela Yair tzi...@gmail.com wrote: did you read the more symfony book? there's an example how to upload multiple photos. On 14 April 2010 18:26, saki sakrame...@gmail.com wrote: hi girls, guys... i would like to implement a multiple file upload function on my page. a lot of modules will use it, so i would like to store all the files in a folder and in one table! i created an upload module and a table for it... id - automatic filename - original filename module - which module uploaded it entityid - who owns the file (for example: module: user, entityid: 6 means this file is related to the #6 user.) created_at updated_at However in the UploadForm.class I did not deal with these attributes, because they will come from the uploaded file (filename) and from url (module name, entityid). In the UploadForm.class I only created 10 file input fields: for($i=1; $i=10; $i++) { $this-widgetSchema['upload'.$i] = new sfWidgetFormInputFile(array()); $this-validatorSchema['upload'.$i] = new sfValidatorFile(array()) } Now, I tried to embed this form to another form: $form = new UploadForm(); unset($form['created_at'], $form['updated_at'], $form['module'], $form['entityid'], $form['filename']); $this-embedForm(upload_fields, $form); Ok, I browsed some file and clicked Save. The parent form was saved successful, but the embed upload form created an empty row in the database very logically, it could not add any useful data to the table. How can I solve this? Unfortunately, I don't know where i can overwrite the save function of the upload form... I know how to save/ store the files with symfony(i've already created a single upload field), but I don't know where to modify the saving process of the upload form to store more lines in the table. Thank you so 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.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Triggers and procedures YAML definition
Hello! It seems that in Doctrine we can't create triggers and procedures (manual insertion required) but I want to know if anyone have a trick to build it. Thank you! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Zend Lucene don't search numercial value
following the tutorial on adding zend to symfony but it doesn't search on any numerical value i need to search on Postal code to define a location any suggestions ??? thank you !! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: doctrine 2+ symfony 1.4
On Apr 14, 10:13 pm, Peter Petrik zil...@gmail.com wrote: hi, i am wondering , it is possible to use doctrine2 with symfony 1.4 (is there any plugin that supports it?) tnx. peter Also this more recent blog post: http://eatmymonkeydust.com/2010/03/using-doctrine-2-with-symfony-1-x-part1/ -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: sfWidgetFormSelectDoubleList order of items?
That would be GREAT! On 14 Apr., 23:33, Richtermeister nex...@gmail.com wrote: Yeah, this is a pretty common requirement, and I've used a double list before that had up/down arrows. I'll see if I can find the code somewhere.. I've been meaning to package that into a widget anyways. Daniel On Apr 14, 8:28 am, comb sa...@gmx.net wrote: Thanks for answering. User-View: The Band-Members can edit a gig (backend) and on the edit page there is a list of all songs and they can add them to the setlist of the gig. The band should be able to give the ordering of the songs in which they are played on the gig. I don't want to reinvent the wheel, so I tried to use the plugin for the double-list. It's almost perfect and while adding songs you can add the songs in the order they are supposed to be, but the plugin cannot save the order of the items and I want to know, how I can add this feature? If that's to complicated, I would like to easily do it an other way. Your suggestion with ajax etc is fine, but it would cost time to implement test it and a plugin is just easier for me. :-) On 14 Apr., 14:20, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: How do you see this working from a user's point of view? What order is supposed to be recorded? I mean how do you anticipate telling the form the correct order? Would it not be better to do the songs for one gig at a time and just click to add a song in the order which you want to store them. You could use Ajax to speed things up a bit. On Mon, Apr 12, 2010 at 12:16 PM, Robert Heim sa...@gmx.net wrote: any hints or tipps? :-/ Am 09.04.2010 14:45, schrieb comb: Hi I have a many-To-many (Gig-Song) relation and want to use sfWidgetFormSelectDoubleList. It work's fine, but I want to save the order of assignments, too (and not only associated /unassociated ). schema.yml: # many-To-many-relation ... GigSong: columns: order_id: { type: integer, notnull: true, default: 0 } gig_id: { type: integer, primary: true } song_id: { type: integer, primary: true } ... As you see I have an order_id. I want to use this field to determine the ordering of played songs on a gig. How can I save the order in which I associated the songs to a gig using the sfWidgetFormSelectDoubleList? Or what may I do alternatively? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Multiple File Uploads in Embed Form
thank you so much! very useful! On ápr. 15, 09:15, Sela Yair tzi...@gmail.com wrote: http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-F... On 15 April 2010 09:27, saki sakrame...@gmail.com wrote: thx! which book contains this topic? On ápr. 14, 23:37, Sela Yair tzi...@gmail.com wrote: did you read the more symfony book? there's an example how to upload multiple photos. On 14 April 2010 18:26, saki sakrame...@gmail.com wrote: hi girls, guys... i would like to implement a multiple file upload function on my page. a lot of modules will use it, so i would like to store all the files in a folder and in one table! i created an upload module and a table for it... id - automatic filename - original filename module - which module uploaded it entityid - who owns the file (for example: module: user, entityid: 6 means this file is related to the #6 user.) created_at updated_at However in the UploadForm.class I did not deal with these attributes, because they will come from the uploaded file (filename) and from url (module name, entityid). In the UploadForm.class I only created 10 file input fields: for($i=1; $i=10; $i++) { $this-widgetSchema['upload'.$i] = new sfWidgetFormInputFile(array()); $this-validatorSchema['upload'.$i] = new sfValidatorFile(array()) } Now, I tried to embed this form to another form: $form = new UploadForm(); unset($form['created_at'], $form['updated_at'], $form['module'], $form['entityid'], $form['filename']); $this-embedForm(upload_fields, $form); Ok, I browsed some file and clicked Save. The parent form was saved successful, but the embed upload form created an empty row in the database very logically, it could not add any useful data to the table. How can I solve this? Unfortunately, I don't know where i can overwrite the save function of the upload form... I know how to save/ store the files with symfony(i've already created a single upload field), but I don't know where to modify the saving process of the upload form to store more lines in the table. Thank you so 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.comsymfony-users%2bunsubscr...@googlegroups.com symfony-users%2bunsubscr...@googlegroups.comsymfony-users%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] The 'right' way to update content in a div section with symphony components?
Hi all, I am currently struggling to find the 'right' way to implement tabulators and the respective update of the content on the tabulator pages. like: | *Tab1* | Tab2 | Tab3 | | Tab1 | *Tab2* | Tab3 | | Tab1 | Tab2 | *Tab3* | - - - Content of Tab1Content of Tab2 Content of Tab3 - - - I assume it is more performant to let the client (Browser) just re- render the content below the tabulators instead of re-rendering the whole page, so I'd like only to update the content of the div section below the tab. There are s many proposals/solutions available in the web to do this, but I feel none of them is really the best way to do this with symphony. My current approach is, to have below the tabulators a div section which includes a component. ul class=tabulators li a href=.Tab1 /a/li li a href=.Tab2 /a/li li a href=.Tab3 /a/li /ul div id=tabContent ?php include_component(); ? /div To change to content of the div I am using a simple javascrip which is called from the link in 'href' of a Tab. function changeContent(divName, newContent) { document.getElementById(divName).innerHTML=newContent; } The problem is, what do I pass for 'newContent'? Just passing the adapted '?php include_component(); ? doesn't do the work. What I would need is the rendered component. So, is there a way to get the redered result for a component, so instead 'include_component' something like 'render_component'? in symphony? Is probably the Template Component introduced here 'http:// components.symfony-project.org/templating/trunk/book/02-Templating' the solution? Or am I propbably thinking in the wrong direction and it's much simpler with symphony? If somebody could direct my thinking into the right direction I would be very thankful. With best regards, Lutz -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] In remote host: Error 500. Unknown record property / related component algorithm on sfGuardUser
Hi, after deploying, i get the error below after loggingin. Sf 1.3, sfDoctrineGuardPlugin. And i have this schema.yml in config/doctrine: Usuario: inheritance: extends: sfGuardUser type: simple columns: username: type: string(128) notnull: false unique: true algorithm: type: string(128) default: sha1 notnull: true nombre_apellidos: string(60) sexo: string(5) fecha_nac: date provincia: string(60) localidad: string(255) email_address: string(255) fotografia: string(255) avatar: string(255) avatar_mensajes: string(255) relations: Usuario: local: user1_id foreign: user2_id refClass: AmigoUsuario equal: true 500 | Internal Server Error | Doctrine_Record_UnknownPropertyException Unknown record property / related component algorithm on sfGuardUser stack trace * at () in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record/Filter/Standard.php line 55 ... 52. */ 53. public function filterGet(Doctrine_Record $record, $name) 54. { 55. throw new Doctrine_Record_UnknownPropertyException(sprintf('Unknown record property / related component %s on %s', $name, get_class($record))); 56. } 57. } * at Doctrine_Record_Filter_Standard-filterGet(object('sfGuardUser'), 'algorithm') in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php line 1382 ... 1379. $success = false; 1380. foreach ($this-_table-getFilters() as $filter) { 1381. try { 1382. $value = $filter-filterGet($this, $fieldName); 1383. $success = true; 1384. } catch (Doctrine_Exception $e) {} 1385. } * at Doctrine_Record-_get('algorithm', 1) in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php line 1337 ... 1334. return $this-$accessor($load); 1335. } 1336. } 1337. return $this-_get($fieldName, $load); 1338. } 1339. 1340. protected function _get($fieldName, $load = true) * at Doctrine_Record-get('algorithm') in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/record/sfDoctrineRecord.class.php line 212 ... 209. return call_user_func_array( 210. array($this, $verb), 211. array_merge(array($entityName), $arguments) 212. ); 213. } else { 214. $failed = true; 215. } * at sfDoctrineRecord-__call(array(object('sfGuardUser'), 'get'), array('algorithm')) in n/a line n/a ... * at sfGuardUser-getAlgorithm('getAlgorithm', array()) in SF_ROOT_DIR/plugins/sfDoctrineGuardPlugin/lib/model/doctrine/PluginsfGuardUser.class.php line 96 ... 93.*/ 94. public function checkPasswordByGuard($password) 95. { 96. $algorithm = $this-getAlgorithm(); 97. if (false !== $pos = strpos($algorithm, '::')) 98. { 99. $algorithm = array(substr($algorithm, 0, $pos), substr($algorithm, $pos + 2)); * at PluginsfGuardUser-checkPasswordByGuard() in SF_ROOT_DIR/plugins/sfDoctrineGuardPlugin/lib/model/doctrine/PluginsfGuardUser.class.php line 83 ... 80. } 81. else 82. { 83. return $this-checkPasswordByGuard($password); 84. } 85. } 86. * at PluginsfGuardUser-checkPassword('m') in SF_ROOT_DIR/lib/sfGuardValidatorUserByEmail.class.php line 28 ... 25. { 26. // password is ok? 27. 28. if ($user-checkPassword($password)) 29. { 30. 31. //die(entro); * at sfGuardValidatorUserByEmail-doClean('m') Any idea? -- Javi Ubuntu 8.04 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] help_foreign key
hello i need your help thank you very much in my schema i have field asforeign key but in the forms i must to write this field but normaly it will be written automatically because it is foreign key -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: Sf 1.3.3 doesn't recognize GuardPlugin 4
How are you installing it? What do you mean exactly with it doesn't work? Javi On Apr 14, 4:21 pm, Manuel E. dhunter...@gmail.com wrote: Hi people: I'm trying to install the sfGuardPlugin 4 in Sf 1.3.3 but it doesn't works, everything fine in 1.2.8 and Guard 1.3 I'm reading Symfony 1.3 Web Applications by Tim Bowler and he uses the GuardPlugin from 1.2 because at the time he wrote the book was the last version, but now that plugin is updated to work in 1.3.3, I don't get it it should work. Cheers. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Can’t get custom error rendering t o work in symfony 1.4
I'm tring to customize error rendering in my form according to this example: http://www.symfony-project.org/forms/1_4/en/03-Forms-for-web-Designers#chapter_03_sub_fine_grained_customization_of_error_messages Here is my code: if ($this['message']-hasError()) { $error_msg = 'ul'; foreach ($this['message']-getError() as $error) $error_msg .= li$error/li; $error_msg .= '/ul'; } return $error_msg; but when `$this['message']` has error this code returns `'ul/ul'` so it seems `foreach ($this['message']-getError() as $error)` causes no iterations `$this['message']-getError()` returns `sfValidatorError` object - maybe something changed in symfony 1.4 and it isn't iterable anymore... At first I thought that all magic in that example happened because of object being placed in `$error` by iteration implements __toString() but it seems no iterations happens at all... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] changed fields
Hello, I like to know if a form saved by update, which field is changed. How can I know this? Thanks -- Ámon Tamás -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: The 'right' way to update content in a div section with symphony components?
On 15 Apr, 08:12, Lutz lutz.p...@gmail.com wrote: So, is there a way to get the redered result for a component, so instead 'include_component' something like 'render_component'? in symphony? http://www.symfony-project.org/api/1_4/PartialHelper#method_get_component -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: The 'right' way to update content in a div section with symphony components?
Great! Long question short answer. I knew it, there's a straight forward solution. Sorry for bothering with that RTFM question and thanks a lot. With best regards, Lutz On 15 Apr., 15:14, Massimiliano Arione garak...@gmail.com wrote: On 15 Apr, 08:12, Lutz lutz.p...@gmail.com wrote: So, is there a way to get the redered result for a component, so instead 'include_component' something like 'render_component'? in symphony? http://www.symfony-project.org/api/1_4/PartialHelper#method_get_compo... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] Re: iocombiner plugin : activation procedure ?
Hey Mikael- The combined files DO use symfony's cache. Make sure you're in the production environment as the combined files obviously won't pull from the cache in the dev environment. Even with symfony's cache, the response time won't ever be as fast as an actual file on your server (though it should be much much faster than 2 seconds). You can also check out the npAssetsOptimizerPlugin, which is similar to my plugin except that it generates actual combined files. Good luck! On Apr 15, 2:10 am, Mikael mikael.kermorg...@gmail.com wrote: Ok, thanks. So, I'm not so sure of where this plugin benefits in my use. I've loaded my test page in opera to trigger the minifying process, and then loaded it again in firefox with firebug. It showed that the loading of the combine.js file took nearly 2s. Isn't there a way to reuse symfony's cache ? app.yml io_combiner_plugin: enabled: true # enable or disable the combiner response_class: ioCombinerResponse combiner_class: ioCombiner expires_days: 30 web_debug_panel: false stylesheets: [common.css, frontend.css, jquery.alerts.css] javascripts: [jquery.js, jquery.alerts.js, jquery.iufm.js] view.yml: stylesheets: [common.css, frontend.css,jquery.alerts.css] javascripts: [jquery.js,jquery.alerts.js, jquery.iufm.js] Regards, Mikael On 14 avr, 16:05, weaverryan weaverr...@gmail.com wrote: Hey Mikael- Yes, this is a mistake in the documentation - I apologize. You're absolutely right to include the combiner_include_stylesheets() and combiner_include_javascripts() in your layout, in place of the normal functions. Thanks! On Apr 14, 2:13 am, Mikael mikael.kermorg...@gmail.com wrote: Hello, I'd like to use iocombiner for our symfony 1.4 project. I've followed the doc but the only way to see combine.css and combine.js requested in firebug is to replace include_stylesheets() by combiner_include_stylesheets() in my layout.php Is this the right way to procede ? Regards, Mikael Kermorgant -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
[symfony-users] cache invalidation on server cluster
Hi! I have a web application distributed among multiple web servers (2 servers) with a central DB for sessions. Cache is used for some objects and for invalidation I override the save() method to delete the local cache. This worked fine for a single server but does not scale to multiple servers. So as a solution I'm thinking to either: 1. Moving to a centralized cache - using memcache, sqlite on a shared directory, ... 2. Making the cache invalidation more complex - develop some sort of cache manager that would remove caches by calling a URL on each server. My question is how do you deal with cache invalidation when deploying a symfony application across mutiple servers? Which solution would you choose to perform the cache invalidation (centralized cache vs. distributed cache manager)? My environment is Symfony 1.0.X so if you have some technique that can be applied to that version it would be great. Thanks, gabriel -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
Re: [symfony-users] cache invalidation on server cluster
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well it is up to you. Use centralized (share folder over NFS ) if this is ok with you. However, think that you get into troubles (A server invalidates the cache while the other one is trying to read it ). I don't like that cache manager ideea. I would rather use Memcache to cache small amounts of data, because then the whole stuff would be done in memory, and i think is quickly and also ... you won't have issues about File permissions / file write while reading ... etc. This is my oppinion ... Alecs -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10) iEYEARECAAYFAkvHQCAACgkQIdlZQSANiuaC1wCfRoqvgyab1EphedFbUFzg0Es9 VDQAn3a4InHDPUkqPQM/V3vL3QSkDdWB =gsnZ -END PGP SIGNATURE- On Thu, Apr 15, 2010 at 7:10 PM, pghoratiu pghora...@gmail.com wrote: Hi! I have a web application distributed among multiple web servers (2 servers) with a central DB for sessions. Cache is used for some objects and for invalidation I override the save() method to delete the local cache. This worked fine for a single server but does not scale to multiple servers. So as a solution I'm thinking to either: 1. Moving to a centralized cache - using memcache, sqlite on a shared directory, ... 2. Making the cache invalidation more complex - develop some sort of cache manager that would remove caches by calling a URL on each server. My question is how do you deal with cache invalidation when deploying a symfony application across mutiple servers? Which solution would you choose to perform the cache invalidation (centralized cache vs. distributed cache manager)? My environment is Symfony 1.0.X so if you have some technique that can be applied to that version it would be great. Thanks, gabriel -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject. -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the last one yesterday ... I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0722 621 280 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] new to Symfony: need help for a simple query
hello there, my schema.yml was generated from mysql table: Users: connection: doctrine tableName: users columns: id: type: integer(4) fixed: false unsigned: false primary: true autoincrement: true userid: type: string(50) fixed: false unsigned: false primary: false notnull: true autoincrement: false profileid: type: string(50) fixed: false unsigned: false primary: false notnull: true autoincrement: false username: type: string(50) fixed: false unsigned: false primary: false notnull: false autoincrement: false pword: type: string(50) fixed: false unsigned: false primary: false notnull: false autoincrement: false fullname: type: string(100) fixed: false unsigned: false primary: false notnull: false autoincrement: false relations: Profile: local: profileid foreign: profileid type: one Profile: connection: doctrine tableName: profile columns: id: type: integer(4) fixed: false unsigned: false primary: false notnull: true autoincrement: true profileid: type: string(50) fixed: false unsigned: false primary: true autoincrement: false profile: type: string(50) fixed: false unsigned: false primary: false notnull: true autoincrement: false description: type: string() fixed: false unsigned: false primary: false notnull: false autoincrement: false relations: Users: local: profileid foreign: profileid type: many --- I have this simple query but it gives me error Unknown relation alias Profile $q = Doctrine_Query::create() -select('u.username, u.profileid,u.fullname,p.profile') -from('Users as u') -leftJoin('u.Profile p on p.profileid=u.profileid') -where('u.username = ?', $request-getParameter('username')) -andWhere('u.pword = ?', $request-getParameter('pword')); $this-users = $q-execute(); - please help. Thank you --- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
Re: [symfony-users] cache invalidation on server cluster
On Thu, 15 Apr 2010, pghoratiu wrote: My question is how do you deal with cache invalidation when deploying a symfony application across mutiple servers? Which solution would you choose to perform the cache invalidation (centralized cache vs. distributed cache manager)? We have a distributed web application with split web and image servers. We are using memcache for caching query results and routing. Each web server has local (file) cache for caching template fragments. We wrote a cache manager module that has actions for all the pieces of cache we want to manage. Requests to the cache module are filtered (so only traffic from our own servers can ever invalidate cache). For pages that need to be updated fairly frequently we set a small cache lifetime (like 15 or 30 mins). Of course, all of this is sitting behind a firewall and Cisco load balancers... -- A -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject.
Re: [symfony-users] new to Symfony: need help for a simple query
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Try: $q = Doctrine_Query::create() -select('u.username, u.profileid,u.fullname,p.profile') -from('Users as u') -leftJoin('u.Profile p') -where('u.username = ?', $request-getParameter('username')) -andWhere('u.pword = ?', $request-getParameter('pword')); $this-users = $q-execute(); Or: $q = Doctrine_Query::create() -select('u.username, u.profileid,u.fullname,p.profile') -from('Users as u') -leftJoin('u.profileid') -where('u.username = ?', $request-getParameter('username')) -andWhere('u.pword = ?', $request-getParameter('pword')); $this-users = $q-execute(); I think second should would work... Alecs -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10) iEYEARECAAYFAkvHYtMACgkQIdlZQSANiuaYpQCfYc00s0EP5KFBLveQ6jOzuD88 rMIAn3sAsHz+soKtxkb7pmtXg/MO/beH =c9dp -END PGP SIGNATURE- On Thu, Apr 15, 2010 at 9:22 PM, tatskie fugitive...@yahoo.com wrote: hello there, my schema.yml was generated from mysql table: Users: connection: doctrine tableName: users columns: id: type: integer(4) fixed: false unsigned: false primary: true autoincrement: true userid: type: string(50) fixed: false unsigned: false primary: false notnull: true autoincrement: false profileid: type: string(50) fixed: false unsigned: false primary: false notnull: true autoincrement: false username: type: string(50) fixed: false unsigned: false primary: false notnull: false autoincrement: false pword: type: string(50) fixed: false unsigned: false primary: false notnull: false autoincrement: false fullname: type: string(100) fixed: false unsigned: false primary: false notnull: false autoincrement: false relations: Profile: local: profileid foreign: profileid type: one Profile: connection: doctrine tableName: profile columns: id: type: integer(4) fixed: false unsigned: false primary: false notnull: true autoincrement: true profileid: type: string(50) fixed: false unsigned: false primary: true autoincrement: false profile: type: string(50) fixed: false unsigned: false primary: false notnull: true autoincrement: false description: type: string() fixed: false unsigned: false primary: false notnull: false autoincrement: false relations: Users: local: profileid foreign: profileid type: many --- I have this simple query but it gives me error Unknown relation alias Profile $q = Doctrine_Query::create() -select('u.username, u.profileid,u.fullname,p.profile') -from('Users as u') -leftJoin('u.Profile p on p.profileid=u.profileid') -where('u.username = ?', $request-getParameter('username')) -andWhere('u.pword = ?', $request-getParameter('pword')); $this-users = $q-execute(); - please help. Thank you --- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en To unsubscribe, reply using remove me as the subject. -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the last one yesterday ... I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0722 621 280 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions
the dataSource plugin provides a simple interface with light weight implementations for propel, doctrine, arrays or anything you write yourself. Compared to dbFinder it does not provide any complex orm- logic, this is still left to the orm of your choice which instance you provide during construction of the datasource. The (Propel) ObjectPath implementation only provides a small layer (behavior) above the ORM to make simple joins possible, by recursively parsing objectPaths: recursively defined relationNames, like Book.Author to join a BookReview with the Book and that Book with its Author. The joining and hydration is still done by the ORM, the behavior simply splits the objectPath at the first dot joins and continues recursively. ObjectPaths will become optional (although very useful) for the grids. DataSources are there to provide a generic interface to access your data, sort it and filter on it: providing basic functionality to manipulate your dataset (from database by propel/doctrine, arrays (json, xml, yml), imap, etc) dbFinder was adding a generic interface as well, but added a relatively complex interface with often complex functionality that wasn't available in the specific orm. in the DataSource implementations complex actions like defining complex filtering (where clauses) or sorting can be done by specializing the propel/doctrine/ arrayDataSource implementation, leaving it up to you (and the specific orm) to perform the complex code. On 15 apr, 04:05, Richard U richard@gmail.com wrote: Sorry, I am referring to the sfPropelObjectPathBehaviorPlugin On Thu, Apr 15, 2010 at 12:04 PM, Richard U richard@gmail.com wrote: How is the sfDataSource different from dbFinder? On Wed, Apr 14, 2010 at 8:52 AM, Leon van der Ree l...@fun4me.demon.nl wrote: Hi All, today I have added the start of routing-engine for grids. DigitalBase has provided a redmine issue-tracker for us at https://symfony.digitalbase.eu/ This way we can report bugs and cooperate much easier, so feel free to report and improve the plugins! On 12 apr, 15:11, E_lexy alexk...@gmail.com wrote: Leon, I just checked out all required plugins to generate a grid. Using your old sfGridExtjs3plugin, i get inheritance errors. it seems the sfGrid class variables cannot be reached by any subclass (private). When I change them to 'protected' the subclasses are allowed access and all works fine. p.s. i am very curious to see your extjs grid plugin, I have am using old plugin so I can specify EXtjs column plugins is the meta data, and have Extjs generate the entire grid based on the jsonhttp://www.extjs.com/deploy/dev/docs/source/Store.html#cls-Ext.data.S... Alex On Apr 12, 11:03 am, DigitalBase i...@digitalbase.eu wrote: Leon, i am trying out your sfGrid plugin and ran into few small issues where do you want us to report problems/bugs ? On Apr 11, 10:53 pm, Leon van der Ree l...@fun4me.demon.nl wrote: Today I will provide a tutorial, setting up a (propel-based) playground with some best practices I came up with so far. (If you prefer Doctrine, you can still follow the tutorial, but of course need to setup a Doctrine schema and use the Doctrine plugins) If you want to see where all the fuzz is about, peak ahead and look at the size of the controller and the template! All configuration can be done in an extended Lets begin with a new (Symfony 1.4) Project: Tip: create a new repository on your svn-server and check this out! (this is useful since we are using a lot of plugins from svn, that can be updated all at once by using svn:externals ) svn co your.svn.server/playground-project playground or, when not using svn mkdir playground cd playground php /symfony14/data/bin/symfony generate:project --orm=propel playground we now have a new propel-based syfmony 1.4 project. Lets start by adding all required Plugins: svn propedit svn:externals . and add the following lines to it: plugins/sfPropel15Pluginhttp://svn.symfony-project.com/plugins/sfPropel15Plugin/trunk plugins/sfPropelObjectPathBehaviorPluginhttp://svn.symfony-project.com/plugins/sfPropelObjectPathBehaviorPlug... plugins/sfDataSourcePlugin http://svn.symfony-project.com/plugins/sfDataSourcePlugin/trunk plugins/sfGridPluginhttp://svn.symfony-project.com/plugins/sfGridPlugin/trunk Now we enable our plugins, first by editing our Project configuration, edit config/ProjectConfiguration.class.php and enable your plugins in the setup-function: $this-enablePlugins( 'sfPropel15Plugin', 'sfPropelObjectPathBehaviorPlugin', // 'sfExtjs3Plugin', // soon people 'sfDataSourcePlugin', 'sfGridPlugin' //, // 'sfGridExtjsPlugin' // soon Just teasing ;) ); Setup propel, by editing propel.ini please note