[symfony-users] Re: ckWebServicePlugin et $_SERVER[ ’SSL_CLIENT_CERT’]

2010-10-27 Thread Belgacem TLILI
Does any developper has an idea for that ??

On 27 oct, 09:05, Belgacem TLILI  wrote:
> hi for all Sf developers,
>
> we have some probleme , may be it's a configuration probléme , really
> i dont know
> this is the our condition:
> we are with Symfony 1.4 & doctrine ORM
> we use ckWebServicePlugin  for our WebService
> and we use an authentification with certeficat,
>
> i would like get the value of the client certificate in the server
> side  but i get am empty value all time
> $_SERVER[’SSL_CLIENT_CERT’]  is empty
>
> can any one help be to get the raison of this bug
>
> thanks for 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


[symfony-users] ckWebServicePlugin et $_SERVER[’S SL_CLIENT_CERT’]

2010-10-27 Thread Belgacem TLILI
hi for all Sf developers,

we have some probleme , may be it's a configuration probléme , really
i dont know
this is the our condition:
we are with Symfony 1.4 & doctrine ORM
we use ckWebServicePlugin  for our WebService
and we use an authentification with certeficat,

i would like get the value of the client certificate in the server
side  but i get am empty value all time
$_SERVER[’SSL_CLIENT_CERT’]  is empty

can any one help be to get the raison of this bug

thanks for 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


[symfony-users] sfCKEditorPlugin

2010-10-21 Thread Belgacem TLILI
please i have an urgent project,
i want to use this plugins sfCKEditorPlugin
i have do all configuration in the read-me page of the plugins
but i have all time

CKEditor class not found


any help plz

-- 
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: order of embed fields in admin generated module

2010-08-10 Thread Belgacem TLILI
hi , Mr Abbassi,

ecuse me but i have not uderstant your solution

i have do sothing like that with  a another module who does not
contain an embeded form ,

in cashe folder

but now i have to re-order the fields of the embeded form also...

so can you explain your idea

thanks

On 10 août, 11:38, abbbassi abidi 
wrote:
> just owverride the _form_field.php or change itin the generator.yml  :)
>
> 2010/8/10 Belgacem TLILI 
>
> > hi for all Sf developers
>
> > i have a backend module containing a form with an embeded form
> > i would like to change the order of the fields in my form (also the
> > fields of the embed form)
>
> > i have used the generator.yml  file but i can't find a way to organise
> > the fields of the embed form
>
> > please help me urgent
>
> > 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

-- 
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] order of embed fields in admin generated module

2010-08-10 Thread Belgacem TLILI
hi for all Sf developers

i have a backend module containing a form with an embeded form
i would like to change the order of the fields in my form (also the
fields of the embed form)

i have used the generator.yml  file but i can't find a way to organise
the fields of the embed form



please help me urgent

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] delete a field in the bind methode

2010-04-28 Thread Belgacem TLILI
hello for all Sf Developpers

i have add a field in my form , i use it to get an ajax list in a
secondfield

when saving the form i must delete the first object because it does
not an element of my object form

so i get all time :   Unexpected extra form field named "firstfield"

i'n thinking to modify the bind method to delete this fiels

so can any body help me

-- 
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] Fatal error: Class 'sfWidgetFormReCaptcha' not found

2010-04-13 Thread Belgacem TLILI
i'm using Sf1.4

i have a form that contain a captcha fiels

in my computer all things work perfect.

i have upload my projet to my server
when i open my form i get this error

Fatal error: Class 'sfWidgetFormReCaptcha' not found

i have check all files have exist in the server
i have do symfony cc
but the problem persist

Plz help me , i cant' find the source of the problem

-- 
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: Fatal error: Call to undefined function remote_function()

2010-04-06 Thread Belgacem TLILI
i have include


if i use  i will get an error
(i thinks for sf 1.4 we must use JavascriptBase

On 6 avr, 00:24, Robert Heim  wrote:
> Oh I'm sorry.. I did not know that remote_function(..) is a built-in
> support for ajax in symfony.. I thought it was meant as a JS function..
>
> So you might want to remove the >"< again.
>
> Did you include the JS-Helper?
> 
>
> Am 06.04.2010 00:13, schrieb Belgacem TLILI:
>
> > i'm using jquery to get the ajax action
>
> > this my code in the template
>
> > 
> > $("#MyButton").click(function() {
> >    remote_function(array("update"=>"item_list","url"=>"cap/new"));
> > });
> > 
>
> > i have not any result ?

-- 
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: Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Belgacem TLILI
i'm using jquery to get the ajax action

this my code in the template


$("#MyButton").click(function() {
  remote_function(array("update"=>"item_list","url"=>"cap/new"));
});



i have not any result ?

-- 
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: Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Belgacem TLILI
great it's work
the problem was resolved
thank you Mr Robert Heim

just one more thing

in Firebug i have an error that i think is not important
-
invalid assignment left-hand side
 'update' => 'myzone',\n
---

??

On 5 avr, 23:34, Robert Heim  wrote:
> try:
>
> echo javascript_tag("remote_function(array(
>      'update'  =>  'myzone',
>      'url'     =>  'mymodule/myaction',
>    ))"
> ) ?>
>
> you need the >"< because otherwise its interpreted as an PHP-function..
>
> Am 05.04.2010 23:31, schrieb Belgacem TLILI:
>
> > i'm using sf 1.4
> > and i'm searching to embed a form using ajax
> > i start with
> > echo javascript_tag(
> >    remote_function(array(
> >      'update'  =>  'myzone',
> >      'url'     =>  'mymodule/myaction',
> >    ))
> > ) ?>
>
> > i have use the java script helper in my template > use_helper('JavascriptBase') ?>
>
> > but i have an error
>
> > Fatal error: Call to undefined function remote_function() in D:
> > \sfprojects\ajaxembedform\apps\frontend\modules\cap\templates
> > \newSuccess.php
>
> > is there any configuration required  to have a solution for this
> > error ?

-- 
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] Fatal error: Call to undefined function remote_function()

2010-04-05 Thread Belgacem TLILI
i'm using sf 1.4
and i'm searching to embed a form using ajax
i start with
echo javascript_tag(
  remote_function(array(
'update'  => 'myzone',
'url' => 'mymodule/myaction',
  ))
) ?>

i have use the java script helper in my template  

but i have an error

Fatal error: Call to undefined function remote_function() in D:
\sfprojects\ajaxembedform\apps\frontend\modules\cap\templates
\newSuccess.php

is there any configuration required  to have a solution for this
error ?

-- 
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] how to build my pernal form

2010-04-01 Thread Belgacem TLILI
im' searching to do a personnal forms
but i have not any idea how to build it

plz help meee

-- 
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] embeding form by ajax

2010-03-30 Thread Belgacem TLILI
i'm searching for an exemple of how to embed form in a main form using
ajax

i have an idea about but i can't find an exemple to do this

plz help me

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: how get an object saved in session

2010-03-23 Thread Belgacem TLILI
it's an array

On Mar 23, 5:40 pm, Tom Haskins-Vaughan 
wrote:
> But is it an array or an object with an array interface?
>
> On Tue, Mar 23, 2010 at 12:19 PM, Belgacem TLILI  
> wrote:
> > $a[0] means it will return the 1st box of my array,
>
> > On Mar 23, 5:02 pm, Tom Haskins-Vaughan 
> > wrote:
> >> What does this produce:
>
> >>   var_dump($a);
>
> >> On Tue, Mar 23, 2010 at 11:57 AM, Jérémie  
> >> wrote:
> >> > Belgacem TLILI wrote:
>
> >> >> now i have save the form fiels in an array
> >> >> then i have save this array in the user session
>
> >> >> $forms1= Array($form->getValues());
> >> >> $this->getUser()->setAttribute('etab',$forms1);
>
> >> >> then:
> >> >> $a=$this->getUser()->getAttribute('etab');
> >> >> $b=$a[0];
> >> >> this return null ??
>
> >> > Well, I'm not sure, but I still wanna help :-p
> >> > Does $a[0] means it will return the 1st box of your array, or this it 
> >> > mean
> >> > it will return the one indexed by "0" ?
> >> > Maybe here is the problem.
>
> >> > Jérémie.
>
> >> > --
> >> > If you want to report a vulnerability issue on symfony, please send it to
> >> > security at symfony-project.com
>
> >> > You received this message because you are subscribed to the Google
> >> > Groups "symfony users" group.
> >> > To post to this group, send email to symfony-users@googlegroups.com
> >> > To unsubscribe from this group, send email to
> >> > symfony-users+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/symfony-users?hl=en
>
> >> > To unsubscribe from this group, send email to
> >> > symfony-users+unsubscribegooglegroups.com or reply to this email with the
> >> > words "REMOVE ME" as the subject.
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> > To unsubscribe from this group, send email to 
> > symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> > words "REMOVE ME" as the subject.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: how get an object saved in session

2010-03-23 Thread Belgacem TLILI
$a[0] means it will return the 1st box of my array,

On Mar 23, 5:02 pm, Tom Haskins-Vaughan 
wrote:
> What does this produce:
>
>   var_dump($a);
>
> On Tue, Mar 23, 2010 at 11:57 AM, Jérémie  wrote:
> > Belgacem TLILI wrote:
>
> >> now i have save the form fiels in an array
> >> then i have save this array in the user session
>
> >> $forms1= Array($form->getValues());
> >> $this->getUser()->setAttribute('etab',$forms1);
>
> >> then:
> >> $a=$this->getUser()->getAttribute('etab');
> >> $b=$a[0];
> >> this return null ??
>
> > Well, I'm not sure, but I still wanna help :-p
> > Does $a[0] means it will return the 1st box of your array, or this it mean
> > it will return the one indexed by "0" ?
> > Maybe here is the problem.
>
> > Jérémie.
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscribegooglegroups.com or reply to this email with the
> > words "REMOVE ME" as the subject.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: how get an object saved in session

2010-03-23 Thread Belgacem TLILI
now i have save the form fiels in an array
then i have save this array in the user session

$forms1= Array($form->getValues());
$this->getUser()->setAttribute('etab',$forms1);

then:
$a=$this->getUser()->getAttribute('etab');
$b=$a[0];
this return null ??

On Mar 23, 3:09 pm, Tom Haskins-Vaughan 
wrote:
> What is the problem with storing the inscription in the database? Even
> if the user cancels before finishing you could either just delete the
> record after a predetermined time or use the record as data on how
> many people are completing how many of your steps.
>
> You might find that 4 steps is too many ;)
>
> On Tue, Mar 23, 2010 at 9:43 AM, Raphael Schumacher
>
>  wrote:
> > See:http://www.symfony-project.org/jobeet/1_4/Doctrine/en/13
> > Subchapter "User Attributes" contains a note addressing the issue
> > about storing objects directly:
> > 
> > We could have feasibly stored the JobeetJob objects directly into the
> > session. This is strongly discouraged because the session variables
> > are serialized between requests. And when the session is loaded, the
> > JobeetJob objects are de-serialized and can be "stalled" if they have
> > been modified or deleted in the meantime.
> > 
> > This of course primarily applies to persistent objects. With non-
> > persistent objects, or persistent objects that haven't been saved so
> > far (e.g. false === $object->exists() ) things could look different.
>
> > To come back to your question:
> > - it should work in principle, although it's not necessarily the
> > cleanest solution
> > - use a default value $book= $this->getUser()->getAttribute('bk',
> > null);
> > - maybe there is a problem with the session --> did you check wether
> > setAttribute/getAttribute works by trying storing/retrieving any
> > trivial thing, e.g. a string value?
>
> > Hope that helps a bit further...
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> > To unsubscribe from this group, send email to 
> > symfony-users+unsubscribegooglegroups.com or reply to this email with the 
> > words "REMOVE ME" as the subject.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: how get an object saved in session

2010-03-23 Thread Belgacem TLILI
i need to store object in session because i dont like to save them in
database in the first action
i'm doing a inscription form in 4 steps so i have to save the 3 object
of the 3 first steps and when the user confirm his inscription i will
save the 3 object in data base

i dont like to save an object in database for every step (in the user
cancel his inscription for exemple )

On Mar 23, 1:14 pm, Tom Haskins-Vaughan 
wrote:
> I don't think storing objects is recommended. I think the prefered
> method is to save the object and store the id in the user session.
>
> On 3/23/10, Belgacem TLILI  wrote:
>
>
>
> > i have save an object ($book)  in the user session with the name bk
>
> > $this->getUser()->setAttribute('bk',$book);
>
> >  i need to save this object in the database after other actions
> > i use
>
> > $book= $this->getUser()->getAttribute('bk');
>
> > $book->save();
>
> > but this return all time null
>
> > anybody have an idea plz
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscribegooglegroups.com or reply to this email with the
> > words "REMOVE ME" as the subject.
>
> --
> Sent from my mobile device

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] how get an object saved in session

2010-03-23 Thread Belgacem TLILI
i have save an object ($book)  in the user session with the name bk

$this->getUser()->setAttribute('bk',$book);

 i need to save this object in the database after other actions
i use

$book= $this->getUser()->getAttribute('bk');

$book->save();

but this return all time null

anybody have an idea plz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: unsing unsetAllFieldsExcept to unset a field of an embeded form

2010-03-20 Thread Belgacem TLILI
any one have an idea please this is the biggest problem in my project



Alexandru-Emil Lupu thanks for all your help

On 19 mar, 13:50, Belgacem TLILI  wrote:
> i have an error about getEmbededForm
>
> other things the function unsetAllFieldsExcept is in the file :
> BaseFormDoctrine.class.php
>
> On Mar 19, 11:41 am, Alexandru-Emil Lupu  wrote:
>
> > in your form2 class add a function unsetAllFieldsExcept
> > and then replace:
>
> >  $this->unsetAllExcept(array( 'name','email' , 'form2[books]' ) );
>
> > to :
>
> > $this->unsetAllExcept(array( 'name','email' ) );
>
> > if ($this->getEmbededForm('form2') instanceof form2Form )
> > {
> >   $this->getEmbededForm('form2')->unsetAllExcept('book');
>
> > }
>
> > Alecs
>
> > On Fri, Mar 19, 2010 at 12:26 PM, Belgacem TLILI 
> > wrote:
>
> > > Hello for all Sf dev,
>
> > > i'm using the function unsetAllFieldsExcept  to get a form in 2 steps
> > > like this exemple
> > >http://www.iw2.fr/2009/08/28/symfony-formulaire-en-plusieurs-etapes/
>
> > > my problem is : i would like to unset a fields for an embed form
>
> > > i call the unsetAllFieldsExcept function here to unset all fields
> > > except name and email
>
> > >  $this->unsetAllExcept(array( 'name','email') );
>
> > > now i would use this function with a fields of ana embed form
> > > i'm traying this
>
> > >  $this->unsetAllExcept(array( 'name','email' , 'form2[books]' ) );
>
> > > but this does not work
> > > any dev has an idea please ?
>
> > > --
> > > If you want to report a vulnerability issue on symfony, please send it to
> > > security at symfony-project.com
>
> > > You received this message because you are subscribed to the Google
> > > Groups "symfony users" group.
> > > To post to this group, send email to symfony-users@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > symfony-users+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en
>
> > > To unsubscribe from this group, send email to symfony-users+
> > > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > > ME" as the subject.
>
> > --
> > 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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: unsing unsetAllFieldsExcept to unset a field of an embeded form

2010-03-19 Thread Belgacem TLILI
i have an error about getEmbededForm

other things the function unsetAllFieldsExcept is in the file :
BaseFormDoctrine.class.php

On Mar 19, 11:41 am, Alexandru-Emil Lupu  wrote:
> in your form2 class add a function unsetAllFieldsExcept
> and then replace:
>
>  $this->unsetAllExcept(array( 'name','email' , 'form2[books]' ) );
>
> to :
>
> $this->unsetAllExcept(array( 'name','email' ) );
>
> if ($this->getEmbededForm('form2') instanceof form2Form )
> {
>   $this->getEmbededForm('form2')->unsetAllExcept('book');
>
> }
>
> Alecs
>
> On Fri, Mar 19, 2010 at 12:26 PM, Belgacem TLILI 
> wrote:
>
>
>
> > Hello for all Sf dev,
>
> > i'm using the function unsetAllFieldsExcept  to get a form in 2 steps
> > like this exemple
> >http://www.iw2.fr/2009/08/28/symfony-formulaire-en-plusieurs-etapes/
>
> > my problem is : i would like to unset a fields for an embed form
>
> > i call the unsetAllFieldsExcept function here to unset all fields
> > except name and email
>
> >  $this->unsetAllExcept(array( 'name','email') );
>
> > now i would use this function with a fields of ana embed form
> > i'm traying this
>
> >  $this->unsetAllExcept(array( 'name','email' , 'form2[books]' ) );
>
> > but this does not work
> > any dev has an idea please ?
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony users" group.
> > To post to this group, send email to symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> > To unsubscribe from this group, send email to symfony-users+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.
>
> --
> 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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] unsing unsetAllFieldsExcept to unset a field of an embeded form

2010-03-19 Thread Belgacem TLILI
Hello for all Sf dev,

i'm using the function unsetAllFieldsExcept  to get a form in 2 steps
like this exemple
http://www.iw2.fr/2009/08/28/symfony-formulaire-en-plusieurs-etapes/

my problem is : i would like to unset a fields for an embed form

i call the unsetAllFieldsExcept function here to unset all fields
except name and email

 $this->unsetAllExcept(array( 'name','email') );

now i would use this function with a fields of ana embed form
i'm traying this

 $this->unsetAllExcept(array( 'name','email' , 'form2[books]' ) );

but this does not work
any dev has an idea please ?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: help il list

2010-03-14 Thread Belgacem TLILI
thank very much Syam

i'm searchin haw to build a list of choice il my action to be
displayed in the template

may be i must use a doctrine query , have u an idea how i can buil the
DQL of this request

thanks

On Mar 13, 2:01 pm, Syam  wrote:
> I am not sure to understand,
>
> You want to retreive category from the existing job ? right ?
>
> But if this is the case, what about the first record ? You won't have
> any existing category, does not make sense ... (or you have to display a
> select input and a free text input, then get the value from one of the
> two fields ...)
>
> I think you should create a jobCategory model whith one-to-many relation
> to your job model, this is a simplier way and faster to execute :
>
> job:
>   connection: doctrine
>   tableName: job
>   columns:
>     id_marchandise:
>       type: integer(4)
>       primary: true
>       autoincrement: true
>    job_category_id: integer
>    sub_category:
>       type: string(50)
>   relations:
>     jobCategory:
>       type: one
>       foreignType: many
>       onDelete: SET NULL
>
> jobCategory:
>   columns:
>     name: string(128)
>
> Belgacem TLILI wrote:
> > i have this class
> > job:
> >   connection: doctrine
> >   tableName: job
> >   columns:
> >     id_marchandise:
> >       type: integer(4)
> >       primary: true
> >       autoincrement: true
> >    category:
> >       type: string(50)
> >    sub_category:
> >       type: string(50)
>
> > i would like have the data  of this table in (of my database) like a
> > list of option in indexSuccess.php
>
> > like this in html
>
> > 
> > Petit Colis
> > Moyen Colis
> > Grand Colis
>
> > //the data from database
>
> > Petite Palette
> > Moyenne Palette
> > Grande Palette
> > 
>
> > how can i do this
>
> > how can i build a doctrine request (DQL)

-- 
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 il list

2010-03-13 Thread Belgacem TLILI
thank you,

i would like to have a sfWidgetFormDoctrineChoice() in may form that
contain all cotegory of job

i dont work in the JobForm.class.php i have another form
ClientForm.php
just i dont know how write my doctrine querie and put this in the
sfWidgetFormDoctrineChoice()


On Mar 13, 2:56 am, ScherlOMatic 
wrote:
> Hello!
>
> What's the problem? Building forms, rendering in your template file or
> writing doctrine queries?
>
> first of all you need to customize your JobForm.class.php:
> sfWidgetFormDoctrineChoice()
>
> please give us more details and you will get more feedback.
>
> Ciao
>
> On 13 Mrz., 01:02, Belgacem TLILI  wrote:
>
> > i have this class
> > job:
> >   connection: doctrine
> >   tableName: job
> >   columns:
> >     id_marchandise:
> >       type: integer(4)
> >       primary: true
> >       autoincrement: true
> >    category:
> >       type: string(50)
> >    sub_category:
> >       type: string(50)
>
> > i would like have the data  of this table in (of my database) like a
> > list of option in indexSuccess.php
>
> > like this in html
>
> > 
> > Petit Colis
> > Moyen Colis
> > Grand Colis
>
> > //the data from database
>
> > Petite Palette
> > Moyenne Palette
> > Grande Palette
> > 
>
> > how can i do this
>
> > how can i build a doctrine request (DQL)

-- 
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] help il list

2010-03-12 Thread Belgacem TLILI
i have this class
job:
  connection: doctrine
  tableName: job
  columns:
id_marchandise:
  type: integer(4)
  primary: true
  autoincrement: true
   category:
  type: string(50)
   sub_category:
  type: string(50)

i would like have the data  of this table in (of my database) like a
list of option in indexSuccess.php

like this in html


Petit Colis
Moyen Colis
Grand Colis

//the data from database

Petite Palette
Moyenne Palette
Grande Palette


how can i do this

how can i build a doctrine request (DQL)

-- 
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: i need help urgent

2010-03-11 Thread Belgacem TLILI
thank (not think) you Alexandru-Emil
this is the solution
i must override the saveEmbededForms method


public function saveEmbeddedForms($con = null, $forms = null)
{
if (null === $con)
{
$con = $this->getConnection();
}

if (null === $forms)
{
$forms = $this->embeddedForms;
}

foreach ($forms as $form)
{
if ($form instanceof sfFormObject)
{

$form->saveEmbeddedForms($con);
if ($form instanceof form3)
{

$form->getObject()->relation_name($this->getObject());
}
$form->getObject()->save($con);
}
else
{
$this->saveEmbeddedForms($con, $form->getEmbeddedForms());
}
}
}



On Mar 11, 8:14 pm, Alexandru-Emil Lupu  wrote:
> Hmmmz i dunno exactly ... but:
>
> 1. you could merge the forms.
> 2. Override the save or saveEmbededForms method
> 3. Make sure that you are using the 3rd form ... the rest should be
> embeded...
> Form2 is embeded in Form1 which is embeded Form3 ...
> After just call new Form3();
>
> Alecs
>
> On Thu, Mar 11, 2010 at 8:52 PM, Belgacem TLILI wrote:
>
>
>
> > think you  Eno,
> > this does not help me
>
> > i will explain my problem in a different why:
> > i have 3 forms
> > 1 - main form use a foreign key from form2
> > 2- form2
> > 3- form3 use a foreign key from main form
>
> > so to save all the form in database we should
> > 1=> save object of form2
> > 2=> then save object of main form with the foreignkey from form2
> > 3=> and finally save the object of form3 with the key from the
> > mainform
>
> > i don't know if i must define the save function or what ? help me
> > please
>
> > On Mar 11, 4:49 pm, Eno  wrote:
> > > On Thu, 11 Mar 2010, Belgacem TLILI wrote:
> > > > hello for all symfony users,
>
> > > > i have a problem with my symfony project
>
> > > > i have two forms
> > > > ** main form for user
> > > > ** embed form for phonenumber
>
> > > > the relation between user and phonenumber is one-many
> > > > in the model phonenumber i have a column id_user
>
> > > > in the file : UserForm.class.php
> > > > i have ahh this lines to the configure methode:
>
> > > >   $number1 = new  phonenumber ();
> > > >   $number1->id_user=$this->getobject()->id_user();
> > > >   $this->embedForm('number_1',new PhonenumberForm($number1)  );
>
> > > > the form appear 5/5
> > > > but when i save the form i'll have an error in the subform of number_1
>
> > > > i think i must modify the save methode
> > > > can any one help me please , this is my final education project
>
> > > Maybe this well help:
> >http://www.symfony-project.org/blog/2008/11/10/call-the-expert-nested...
>
> > > --
>
> > --
> > 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
>
> --
> 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: i need help urgent

2010-03-11 Thread Belgacem TLILI
think you  Eno,
this does not help me

i will explain my problem in a different why:
i have 3 forms
1 - main form use a foreign key from form2
2- form2
3- form3 use a foreign key from main form

so to save all the form in database we should
1=> save object of form2
2=> then save object of main form with the foreignkey from form2
3=> and finally save the object of form3 with the key from the
mainform

i don't know if i must define the save function or what ? help me
please

On Mar 11, 4:49 pm, Eno  wrote:
> On Thu, 11 Mar 2010, Belgacem TLILI wrote:
> > hello for all symfony users,
>
> > i have a problem with my symfony project
>
> > i have two forms
> > ** main form for user
> > ** embed form for phonenumber
>
> > the relation between user and phonenumber is one-many
> > in the model phonenumber i have a column id_user
>
> > in the file : UserForm.class.php
> > i have ahh this lines to the configure methode:
>
> >   $number1 = new  phonenumber ();
> >   $number1->id_user=$this->getobject()->id_user();
> >   $this->embedForm('number_1',new PhonenumberForm($number1)  );
>
> > the form appear 5/5
> > but when i save the form i'll have an error in the subform of number_1
>
> > i think i must modify the save methode
> > can any one help me please , this is my final education project
>
> Maybe this well 
> help:http://www.symfony-project.org/blog/2008/11/10/call-the-expert-nested...
>
> --

-- 
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 need help urgent

2010-03-11 Thread Belgacem TLILI
hello for all symfony users,

i have a problem with my symfony project

i have two forms
** main form for user
** embed form for phonenumber

the relation between user and phonenumber is one-many
in the model phonenumber i have a column id_user

in the file : UserForm.class.php
i have ahh this lines to the configure methode:

  $number1 = new  phonenumber ();
  $number1->id_user=$this->getobject()->id_user();
  $this->embedForm('number_1',new PhonenumberForm($number1)  );



the form appear 5/5
but when i save the form i'll have an error in the subform of number_1

i think i must modify the save methode
can any one help me please , this is my final education project

-- 
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