[symfony-users] Re: Math problem in my diploma thesis

2010-06-08 Thread Tom Ptacnik
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

AW: [symfony-users] Managing i18n content for frontend in the backend

2010-06-08 Thread Christopher Schnell
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 lan

[symfony-users] Re: GuardUser in doctrine class

2010-06-08 Thread Tom Ptacnik
Of course there is - over the sfContext, but It's not a great solution. http://eatmymonkeydust.com/2009/08/symfony-forms-flexible-widgets-based-on-user-credentials/ http://webmozarts.com/2009/07/01/why-sfcontextgetinstance-is-bad/ On 6 čvn, 16:14, Alvaro Garcia wrote: > Hello! > > In my doctrin

Re: [symfony-users] Re: Math problem in my diploma thesis

2010-06-08 Thread Daniel Lohse
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 ar

[symfony-users] Re: help:doctrine

2010-06-08 Thread Tom Ptacnik
How is it giving you the id? On 7 čvn, 13:20, safa boubekri 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

Re: [symfony-users] Re: help:doctrine

2010-06-08 Thread safa boubekri
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] emptu_object

2010-06-08 Thread safa boubekri
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

Re: [symfony-users] help:doctrine

2010-06-08 Thread Eno
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 y

Re: [symfony-users] Re: I don't see images in production in a shared server

2010-06-08 Thread Eno
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 re

[symfony-users] getRaw produces blank content

2010-06-08 Thread el-sid
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 getRaw('conte

[symfony-users] Re: getRaw produces blank content

2010-06-08 Thread el-sid
i mean unescape selected content On Jun 8, 3:23 pm, el-sid 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->getPar

Re: [symfony-users] help:doctrine

2010-06-08 Thread safa boubekri
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 cotasationTa

[symfony-users] Re: How to add an error to a form field

2010-06-08 Thread Tom Ptacnik
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 wrote: > Hi there, > > I have a form with an embedded form, wich can have N embedded forms: > > parentForm: >   wrapperForm: >     form_1 >     form

[symfony-users] Re: Managing i18n content for frontend in the backend

2010-06-08 Thread Tom Ptacnik
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" wrote: > Hi, > > I've do

[symfony-users] i haven't result when i use sfWidgetFormQueryAutocompleter

2010-06-08 Thread allel benbrahim
hello i coded this line and I did not find why its not working ///create form setWidgets(array ('nom' => new sfWidgetFormChoice(array ('choices' => array(), 'renderer_class' =>'sfWidgetFormJQueryAutocompleter', 'render

[symfony-users] Re: getRaw produces blank content

2010-06-08 Thread Tom Ptacnik
In the template getAtributte(ESC_RAW) ?> On 8 čvn, 14:26, el-sid wrote: > i mean unescape selected content > > On Jun 8, 3:23 pm, el-sid wrote: > > > > > hello all, > > > I am trying to render content from the database that was stored using > > tiny_mice and sfFormExtraPlugin > > > in the con

Re: [symfony-users] help:doctrine

2010-06-08 Thread Eno
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 repor

Re: [symfony-users] Re: How to add an error to a form field

2010-06-08 Thread Asier
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 t

[symfony-users] using PropelRouteCollections in YAML or elsewhere

2010-06-08 Thread Robert Schoenthal
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 somethin

[symfony-users] Re: getRaw produces blank content

2010-06-08 Thread el-sid
i assume you mean: getContent(ESC_RAW) ?> i also tried 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 wrote: > In the template > > getAtributte(ESC_RAW) ?> > > On 8 čvn, 14:26, el-sid wr

AW: [symfony-users] Re: Managing i18n content for frontend in the backend

2010-06-08 Thread Christopher Schnell
Hi, you like to see it codewise or in action? 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 16:03 An: symfony users Betreff: [symfony-users] Re: Man