[symfony-users] relation betwwen a sfGuardUser and an other object in schema.yml

2010-05-04 Thread trankh
Every symfony developper has encountered this implemantation. How to define a relation between a sfGuardUser and an other object? I need a schema.yml example. Imagine an object EventMember which defines a relation between anobjet Event and an object sfGuardUser (which is a member in the applica

[symfony-users] Re: Jquery and AJAX symfony 1.4

2010-04-19 Thread trankh
I'm sorry but i prefer you write the code because i don't get it. Why do you use json? Thanks On 19 avr, 20:40, Welington Veiga wrote: > Well, it's very easy, use ajax like a single php file. > > View: > Use a the helper to decide for > what URL to send, inside your

[symfony-users] Jquery and AJAX symfony 1.4

2010-04-19 Thread trankh
Hello, I want to call a simple action without passing any argument inside a jquery function. No argument because a random function is called inside the action. The routing (in input and output) is this: plantyourtree: url: /tree/plantyourtree param: { module: tree, action: new } the js fil

[symfony-users] symfony 1.4 Doctrine manytomany documentation

2010-04-10 Thread trankh
Do you have an up-to-date documlentation for symfony 1.4 and Doctrine. I want to do some unit tests with manytomany model but impossible to find the right syntax. I saw an interesting documentation here http://www.symfony-project.org/doctrine/1_2/en/06-Working-With-Data but it is not up to date and

[symfony-users] Re: Frontend // pager or filter display issue

2010-03-29 Thread trankh
How do you use generator for frontend filter. Because i tried to do that in an other way but i have a bug. http://groups.google.com/group/symfony-users/browse_thread/thread/6f6b5a482d4f44ad Thank you On 29 mar, 19:06, ziclo wrote: > Any idea ? > Thank you for your help ! > > On 27 mar, 22:06,

[symfony-users] Re: How to implement a basic filter on frontend with Doctrine sf1.4??

2010-03-27 Thread trankh
I can explain my problem from start: There is a filter where i can choose a category and a list of trees is displayed depending of the category chosen. Each tree belongs to one or several categories. This is my action which displays in a first time all trees. In a seconde time, after filter va

[symfony-users] Re: How to implement a basic filter on frontend with Doctrine sf1.4??

2010-03-26 Thread trankh
eIndex(sfWebRequest $request) >   { >     $this->formFilter = new myModelFilter(); >     if($request->isMethod('post')) { >       > $this->formFilter->bind($request->getParameter($this->formFilter->getName())); > >     } >     $query = $this->formFilte

[symfony-users] Re: How to implement a basic filter on frontend with Doctrine sf1.4??

2010-03-25 Thread trankh
Yes... On 26 mar, 00:03, Tom Haskins-Vaughan wrote: > +1 > > I've always been interseted in doing this > > On 3/25/10, trankh wrote: > > > > > > > Hello, > > I am a beginner to symfony. > > > I haven't found a correct explanation for

[symfony-users] How to implement a basic filter on frontend with Doctrine sf1.4??

2010-03-25 Thread trankh
Hello, I am a beginner to symfony. I haven't found a correct explanation for How to implement a basic filter on frontend with Doctrine?? I tried to tweek admin backend filters and copy to frontend but it is really dirty. Moreover, i don't want to display edit or delete button, I just want a list