[symfony-users] Managing i18n content for frontend in the backend
Hi, I want to tell you my thoughts about managing I18N content in the backend and want to know your opinions. I want to internationalize my frontend app - classic (i18n/ messages.xx.xml + object with I18n behaviour) .. no problem Then I need to manage internationalized objects (News) in the backend. I have attributes: title and content (doctrine - i18n behaviour). I want English, Deutch and Czech language. I need to somehow to display this languages on the form. possibility 1) In the master form use $this-embedI18n(array('en', 'de', 'cs')); .. like in Jobeet example. I don't like this solution because the form is too long. 2 fields for every language. (imagine that I want to add some mor languages, or more internationalized fields ... I thing this is not suitable for me) possibility 2) Show only fields for selected translation. There is some solution here [url1] http://forum.symfony-project.org/index.php/t/16823/ ... I almost like it. I want to do something like this [url1]. For this I can use embedI18n(array('onlyOneSelectedLang')) or mergeForm(xxFormTranslation()) I think I'll go with mergeForm() if I don't hit a snag with something. One thing I dont like on the solution in [url1] is that he use use sf_culture in the sfUser object for selecting languege and sf_default_culture setting. I don't think that is correct, because this stuff is for internationalizing the backend, not for the managing the internationalized content. Am I right? So if I don't want to use sf_culture - I have to figer out how to KNOW which language is selected .. which translation show on the form. I've thought about two solutions 1) store it into the session - something like sf_culture in sf_user object 2) store in only in the URL ( backend_dev.php/news/1/edit/ edited_lang ) If you have read this till this end and you've some opinion or you have deal with something similar .. tell me how you did it. I want to do this: - Show some tabs-like links for changing the language of the form content (EN, DE, CZ) - Store this selected lang into the session (contentCulture) - On the form show only the fields for the selected lang by mergeForm() function What do you thing abou it? -- 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] Attributes in m:m relations with propel
Hi, I've run into a problem today, maybe it is more propel than symfony related, but maybe someone here knows something to point me into the right direction. In my database schema, I have a m:m relation (Course:Language) which has an attribute price since the course in mandarin is more expensive than in english. So the schema.yml looks like this : course2languages: created_at: ~ updated_at: ~ course_id: { type: integer, foreignTable: Course, primaryKey: true, foreignReference: id, onDelete: cascade, required: true} courselanguage_id: { type: integer, foreignTable: CourseLanguages, primaryKey: true, foreignReference: id, onDelete: cascade, required: true} price: {type: decimal, size: 3, scale: 2, default: 0.00} Now, whenever I add or remove a relation, propel deletes all existing relations and builds them again, thus deleting my attributes. I tried with embedded forms which was displayed nicely in the frontend, but unfortunately, propel does the update first, then deletes the relation and then inserts it again, loosing my attribute. Does anyone know how to work with attributes in relations? I think it would already help, if I knew how to reverse the update and delete/insert transactions in propel. Do the forms provide such a way? Or is it simply not possible to use attributes with relations? What would be the correct way then? BTW, I am using symfony 1.4 and Propel 1.4 Thanks and Regards, Christopher. -- 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: Math problem in my diploma thesis
I'll try :) input - arrayA, arrayB while arrayA has values { take value of arrayA one by one while arrayB has values { add combination of value from arrayA and arrayB into the result as array } } return result .. if combinations are only the pairs of numbers (I hope so :) , I don't think it's that hard to understand .. it's only about understanding the PHP array functions. On 6 čvn, 16:05, Daniel Lohse annismcken...@googlemail.com wrote: Hey guys, I'm in the middle of my diploma thesis and I have a little Math problem. I needed an algorithm that takes arrays with numbers in them and calculates all possible combinations out of these – much like a tree diagram, only in code. :) So, I found something on the net (please don't bash me) and I do know that it's a non-recursive function (which is good). But I can't for the life of me figure out how it does what it does. I thought that someone here could help me out with this? I pasted it here:http://pastebin.com/jtpEDnkj The class takes this input: array( array(1, 2), array(3, 4) ) and returns this after having done its thing: array( array(2, 3), array(2, 4), array(1, 3), array(1, 4) ) It works great but I need this in pseudo-code. :( Any help is very much appreciated! Daniel -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Math problem in my diploma thesis
Thanks! :) *grins* You're absolutely right, I think that pass-by-reference operator () scared me a bit there. ;-) Daniel On 08.06.2010, at 09:10, Tom Ptacnik wrote: I'll try :) input - arrayA, arrayB while arrayA has values { take value of arrayA one by one while arrayB has values { add combination of value from arrayA and arrayB into the result as array } } return result .. if combinations are only the pairs of numbers (I hope so :) , I don't think it's that hard to understand .. it's only about understanding the PHP array functions. On 6 čvn, 16:05, Daniel Lohse annismcken...@googlemail.com wrote: Hey guys, I'm in the middle of my diploma thesis and I have a little Math problem. I needed an algorithm that takes arrays with numbers in them and calculates all possible combinations out of these – much like a tree diagram, only in code. :) So, I found something on the net (please don't bash me) and I do know that it's a non-recursive function (which is good). But I can't for the life of me figure out how it does what it does. I thought that someone here could help me out with this? I pasted it here:http://pastebin.com/jtpEDnkj The class takes this input: array( array(1, 2), array(3, 4) ) and returns this after having done its thing: array( array(2, 3), array(2, 4), array(1, 3), array(1, 4) ) It works great but I need this in pseudo-code. :( Any help is very much appreciated! Daniel -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: help:doctrine
How is it giving you the id? On 7 čvn, 13:20, safa boubekri boubekri.s...@gmail.com wrote: hello i make this code in my action $this-test = Doctrine_Query::create() -select('titre') -from('Cotisation')-execute(); it's give me the Id but not 'titre' 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
Re: [symfony-users] Re: help:doctrine
hello it returns me 3 4 the ID of Cotisation -- 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] emptu_object
hello have empty object how can i call object from indexSuccess.php ?? in CotsationTable.class public function getTotals(Doctrine_Query $q = null) { $q=Doctrine_Query::create() - SELECT('SUM(montant)') -from('Cotisation'); $montant = $q-fetchOne(); return $montant;} in action i put public function executeIndex(sfWebRequest $request) { $this-bilan = Doctrine_core::getTable('Cotisation')-getTotals($montant); } in indexSuccess.php ?php print_r($bilan); ? ?php foreach($bilan as $value): ? ?php echo $value ? ?php endforeach; ? but i have empty object Cotisation Object( [_node:protected] = [_id:protected] = Array ( ) [_data:protected] = Array ( [id] = Doctrine_Null Object ( ) [id_personne] = Doctrine_Null Object ( ) [Titre] = Doctrine_Null Object ( ) [Montant] = Doctrine_Null Object ( ) ) [_values:protected] = Array ( [SUM] = 300 ) 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
Re: [symfony-users] help:doctrine
On Mon, 7 Jun 2010, safa boubekri wrote: i make this code in my action $this-test = Doctrine_Query::create() -select('titre') -from('Cotisation')-execute(); it's give me the Id but not 'titre' Sounds like you keep asking the same question over and over again. Do you understand what ORM means? I dont think so, so please read up on it: http://www.symfony-project.org/gentle-introduction/1_4/en/08-Inside-the-Model-Layer-Doctrine You will always get objects back from queries. Its up to you to grab the appropriate field to print or add a method to provide a proper string, etc etc. -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: I don't see images in production in a shared server
On Mon, 7 Jun 2010, Javier Garcia wrote: When I say minimum I'm thinking in price :). Most of your problems stem from the fact that your hosting provider doesn't allow certain config directives needed for symfony. So just find a provider that does. I use cheap virtual servers but they do require you know how to setup and maintain a Linux server but that might not be appropriate for you. You'll have to do some research and find something you can manage. The symfony wiki has some useful info: http://trac.symfony-project.org/wiki#Installingsymfony -- -- 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] getRaw produces blank content
hello all, I am trying to render content from the database that was stored using tiny_mice and sfFormExtraPlugin in the controller $this-articles = Doctrine::getTable('Articles')- getNewsItems($request-getParameter('id')); in the template, i try this after looping in a foreach php article-getRaw('content') ? the result is a blank page(not white screen) where the content should render if i look at the view source of the browser, the data is there nicely formatted and unescaped. I want to leave escaping strategy on and only escape selected content. I am using symfony 1.4 any ideas? thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: getRaw produces blank content
i mean unescape selected content On Jun 8, 3:23 pm, el-sid sydneyari...@gmail.com wrote: hello all, I am trying to render content from the database that was stored using tiny_mice and sfFormExtraPlugin in the controller $this-articles = Doctrine::getTable('Articles')- getNewsItems($request-getParameter('id')); in the template, i try this after looping in a foreach php article-getRaw('content') ? the result is a blank page(not white screen) where the content should render if i look at the view source of the browser, the data is there nicely formatted and unescaped. I want to leave escaping strategy on and only escape selected content. I am using symfony 1.4 any ideas? thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] help:doctrine
thank you for the link but the version of symfony wich i use is 1.3 i want to khow if this method it's correct for 1.3 public function getTotal() { $total = 0; foreach ($this-getMontant() as $item) { $total += $item-getMontant() ; } return $total; } i put it nth cotasationTable.class.php thank y -- 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: How to add an error to a form field
How do you want to show the error next to the hidden field? All hidden fields are on the beginning of the form, aren't they? On 7 čvn, 16:35, Asier aillarrame...@gmail.com wrote: Hi there, I have a form with an embedded form, wich can have N embedded forms: parentForm: wrapperForm: form_1 form_2 ... form_n Nice. The problem is that this child forms have a date field (actually a hidden field: sfWidgetFormInputHidden) which I must check so that: form_1.date = form_2.date = ... = form_n.date. So, I have opted to use a callback postValidator in parentForm. I set this in parentForm configure() method: $this-validatorSchema-setPostValidator(new sfValidatorCallback(array( 'callback' = array($this, 'validateSchema'), ))); And this is my validateSchema method: public function validateSchema(sfValidatorBase $validator, array $values) { $previous_date = 0; $forms = $this-embeddedForms['wrapperForm']-getEmbeddedForms(); foreach ($values['wrapperForm'] as $form_id = $form) { if (strtotime($form['date']) $previous_date) { *// ADD ERROR MESSAGE* } else { $previous_date = strtotime($form['date']); } } return $values; } Knowing that to access one of the child forms object, we can use $forms[$form_id] within the for loop. How the hell can I add an error message to the date field?? :( I don't want a global error, I just want the error next to it's corresponding field. Any idea would be greatly appreciated. Thank you, Asier. -- 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: Managing i18n content for frontend in the backend
Hi, thank you for your response. I've managed this today as I sad in my first report (one translation on the form via mergeForm, selected language is set in the session), but I would realy like to see your solution. Regards, Tom On 8 čvn, 09:17, Christopher Schnell ty...@mda.ch wrote: Hi, I've done something like this, but with an AJAX approach. The user can select the language he wants to edit and the form adjusts to the selected language. Then I only have to validate that at least one language does exist and adjust the __toString() methods of translated objects to provide language fallback. It is a little tricky, but it works. If you need more information, I will try to provide some detailed examples. The advantage is, that you don't have to get the language in the form, but rather render only the form, required. Hope, this helps a little. Regards, Christopher. -Ursprüngliche Nachricht- Von: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Im Auftrag von Tom Ptacnik Gesendet: Dienstag, 8. Juni 2010 08:54 An: symfony users Betreff: [symfony-users] Managing i18n content for frontend in the backend Hi, I want to tell you my thoughts about managing I18N content in the backend and want to know your opinions. I want to internationalize my frontend app - classic (i18n/ messages.xx.xml + object with I18n behaviour) .. no problem Then I need to manage internationalized objects (News) in the backend. I have attributes: title and content (doctrine - i18n behaviour). I want English, Deutch and Czech language. I need to somehow to display this languages on the form. possibility 1) In the master form use $this-embedI18n(array('en', 'de', 'cs')); .. like in Jobeet example. I don't like this solution because the form is too long. 2 fields for every language. (imagine that I want to add some mor languages, or more internationalized fields ... I thing this is not suitable for me) possibility 2) Show only fields for selected translation. There is some solution here [url1]http://forum.symfony-project.org/index.php/t/16823/... I almost like it. I want to do something like this [url1]. For this I can use embedI18n(array('onlyOneSelectedLang')) or mergeForm(xxFormTranslation()) I think I'll go with mergeForm() if I don't hit a snag with something. One thing I dont like on the solution in [url1] is that he use use sf_culture in the sfUser object for selecting languege and sf_default_culture setting. I don't think that is correct, because this stuff is for internationalizing the backend, not for the managing the internationalized content. Am I right? So if I don't want to use sf_culture - I have to figer out how to KNOW which language is selected .. which translation show on the form. I've thought about two solutions 1) store it into the session - something like sf_culture in sf_user object 2) store in only in the URL ( backend_dev.php/news/1/edit/ edited_lang ) If you have read this till this end and you've some opinion or you have deal with something similar .. tell me how you did it. I want to do this: - Show some tabs-like links for changing the language of the form content (EN, DE, CZ) - Store this selected lang into the session (contentCulture) - On the form show only the fields for the selected lang by mergeForm() function What do you thing abou it? -- 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 athttp://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] i haven't result when i use sfWidgetFormQueryAutocompleter
hello i coded this line and I did not find why its not working ///create form ?php class ActeurSearchForm extends sfForm { public function configure() { $this-setWidgets(array ('nom' = new sfWidgetFormChoice(array ('choices' = array(), 'renderer_class' ='sfWidgetFormJQueryAutocompleter', 'renderer_options' = array('url' = '/Acteur/ search',), )) )); $this-widgetSchema-setFormFormatterName('div'); } } add Action class ActeurActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this-form= new ActeurSearchForm(); } } ///add action for searching public function executeSearch(sfWebRequest $request) { $this-getResponse()-setContentType('application/json'); $Acteur=ActeurPeer::searchActeurAjax($request-getParameter('q'), $request-getParameter('limit')); return $this-renderText(json_encode($Acteur)); } //class ActeurPeer : public static function searchActeurAjax($q,$limit) { $c=new Criteria(); $c-add(self::NOM,'%'.$q.'%', Criteria::LIKE); $c-addAscendingOrderByColumn(self::NOM); $c-setLimit($limit); $acteurs=array(); foreach(self::doSelect($c) as $acteur) { $acteurs[$acteur-getidacteur()] = $acteur-getnom(); } return $acteurs; } //and finaly in template ?php use_javascript ('/js/jquery-1.4.2.min.js'); ? ?php use_javascript ('/sfFormExtraPlugin/js/ jquery.autocompleter.js') ;? ?php use_stylesheet ('/sfFormExtraPlugin/css/ jquery.autocompleter.css'); ? form action=?php echo url_for('Acteur/Detail') ? method=POST ?php echo $form['nom']; ? input type=submit value=Rechercher / /form -- 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: getRaw produces blank content
In the template ?php echo $object-getAtributte(ESC_RAW) ? On 8 čvn, 14:26, el-sid sydneyari...@gmail.com wrote: i mean unescape selected content On Jun 8, 3:23 pm, el-sid sydneyari...@gmail.com wrote: hello all, I am trying to render content from the database that was stored using tiny_mice and sfFormExtraPlugin in the controller $this-articles = Doctrine::getTable('Articles')- getNewsItems($request-getParameter('id')); in the template, i try this after looping in a foreach php article-getRaw('content') ? the result is a blank page(not white screen) where the content should render if i look at the view source of the browser, the data is there nicely formatted and unescaped. I want to leave escaping strategy on and only escape selected content. I am using symfony 1.4 any ideas? thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] help:doctrine
On Tue, 8 Jun 2010, safa boubekri wrote: thank you for the link but the version of symfony wich i use is 1.3 No difference between 1.3 and 1.4, as you can see here: http://www.symfony-project.org/gentle-introduction/1_3/en/08-Inside-the-Model-Layer-Doctrine -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: How to add an error to a form field
Ehhh, ok, how can I be so stupid... ejem. ^_^U Anyway, how would it be if the field is a text input field?? Now that I notice, even if those fields are hidden, if I set an error on one of then, shouldn't they be rendered by the embedded form template if I put: $form-renderError() ?? I mean, all the hidden fields errors should be rendered by that renderError() so that they would apper in the embedded form context and no as parentForm's, isn't it? When I said I just want the error next to it's corresponding field. I wanted to say that the errors should appear in the embedded form context, and not as global errors of parentForm. Sorry for the confusion, Asier. On Tue, Jun 8, 2010 at 3:55 PM, Tom Ptacnik to...@tomor.cz wrote: How do you want to show the error next to the hidden field? All hidden fields are on the beginning of the form, aren't they? On 7 čvn, 16:35, Asier aillarrame...@gmail.com wrote: Hi there, I have a form with an embedded form, wich can have N embedded forms: parentForm: wrapperForm: form_1 form_2 ... form_n Nice. The problem is that this child forms have a date field (actually a hidden field: sfWidgetFormInputHidden) which I must check so that: form_1.date = form_2.date = ... = form_n.date. So, I have opted to use a callback postValidator in parentForm. I set this in parentForm configure() method: $this-validatorSchema-setPostValidator(new sfValidatorCallback(array( 'callback' = array($this, 'validateSchema'), ))); And this is my validateSchema method: public function validateSchema(sfValidatorBase $validator, array $values) { $previous_date = 0; $forms = $this-embeddedForms['wrapperForm']-getEmbeddedForms(); foreach ($values['wrapperForm'] as $form_id = $form) { if (strtotime($form['date']) $previous_date) { *// ADD ERROR MESSAGE* } else { $previous_date = strtotime($form['date']); } } return $values; } Knowing that to access one of the child forms object, we can use $forms[$form_id] within the for loop. How the hell can I add an error message to the date field?? :( I don't want a global error, I just want the error next to it's corresponding field. Any idea would be greatly appreciated. Thank you, Asier. -- 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] using PropelRouteCollections in YAML or elsewhere
he guys, i have a propelRouteCollection: foo: class: sfPropel15RouteCollection options: model: Foo module: foo prefix_path: /:sf_culture/foo column: id with_wildcard_routes: true now i want to be able to define something like this: @foo?action=new - /en/foo(but i needed /en/foo/new) @foo?bar=baz - /en/foo?bar=baz (unknown params are passed through) for directly jumping to the creation page. i tried it as seen up there, but it wont work, whats the clue? thanks robert -- 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: getRaw produces blank content
i assume you mean: ?php echo $item-getContent(ESC_RAW) ? i also tried ?php echo $item-getContent(ESC_RAW) ? didnt work either. View source still produces un escaped content but cannot be seen in the template On Jun 8, 5:06 pm, Tom Ptacnik to...@tomor.cz wrote: In the template ?php echo $object-getAtributte(ESC_RAW) ? On 8 čvn, 14:26, el-sid sydneyari...@gmail.com wrote: i mean unescape selected content On Jun 8, 3:23 pm, el-sid sydneyari...@gmail.com wrote: hello all, I am trying to render content from the database that was stored using tiny_mice and sfFormExtraPlugin in the controller $this-articles = Doctrine::getTable('Articles')- getNewsItems($request-getParameter('id')); in the template, i try this after looping in a foreach php article-getRaw('content') ? the result is a blank page(not white screen) where the content should render if i look at the view source of the browser, the data is there nicely formatted and unescaped. I want to leave escaping strategy on and only escape selected content. I am using symfony 1.4 any ideas? thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en