[symfony-users] Admin generator filters in sf 1.2

2009-01-02 Thread gestadieu
Hi all, I am working on a project with sf 1.2 and Doctrine (new to me) and for the backend I need to have a kind of live search (something similar to Google Suggest). My idea to achieve this is to create a customized filter text input field with a partial, add to it some jQuery for the ajax

[symfony-users] Re: Admin generator filters in sf 1.2

2009-01-02 Thread zero0x
Hm maybe you want to look at the Doctrine docs.. For search you can also use Zend Lucene, which is described in Jobeet tutorial, day 17 (http://www.symfony-project.org/jobeet/1_2/Doctrine/ en/17) On 2. Jan, 10:28 h., gestadieu gestad...@gmail.com wrote: Hi all, I am working on a project with

[symfony-users] call a single action file from a template file

2009-01-02 Thread sharmishtha.gu...@gmail.com
I have a template file in module A and i want to call a single action file in module B. Ex modules/A/templates/ASuccess.php has form action=?php echo url_for('B/method') ? method=post /form modules/B/actions/methodAction.class.php has some piece of code. Is their any problem in my method

[symfony-users] Re: sfDoctrineGuardPlugin BUG or 1.2 BUG ?

2009-01-02 Thread fredlab
For those interested, I found solutions for both problems and create 2 tickets and submitted 2 patches. Hope they got accepted. Otherwise, I hope I get another solution. * http://trac.symfony-project.org/ticket/5523 * http://trac.symfony-project.org/ticket/5522 Let me know what you think of

[symfony-users] Best way to do conditional form validation

2009-01-02 Thread Ruben
Hi all, I found the symfony form validation framework quite useful so far. Though I've yet to find a way to do proper conditional form validation based on the submitted values of other forms. Use case: A form with multiple input fields and a select box A (yes|no). If A is yes some fields within

[symfony-users] Re: Best way to do conditional form validation

2009-01-02 Thread Brandon Olivares
Ruben, I think the best way will be to create a validator schema and set is as a post validator. Then you have access to all of the fields and can validate them as necessary. I did this once when I had two radio buttons, but one could not be selected if a certain field was empty. I have posted

[symfony-users] Re: How to add multiple forms to a page?

2009-01-02 Thread carlos.barros
Hello guys!! This post is a little bit old (well, not very old), but I just posted an example of using embedFormForEach to add multiple items in a form.. The example is not very simple, but works pretty well... you can check it at:

[symfony-users] How to sort admin generator tables alphabetically on a field in a foreign table: updated

2009-01-02 Thread Tom Boutell
Hi folks, Awhile ago i wrote a wiki article and a plugin covering how to get the admin generator's list view to sort alphabetically when the field you're sorting on is a foreign key. For instance, if you have a table of events and a table of DJs and events reference DJs through a foreign key