[symfony-users] Re: Looking for a simple doctrine nested form example symfony 1.2 branch

2009-07-28 Thread Damien Lepage
Hi, I am looking for something like that too. I found the following posts which may help you: http://sandbox-ws.com/how-to-embed-forms-in-symfony-12-admin-generator http://sandbox-ws.com/how-to-embed-forms-in-s

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-03 Thread Damien Lepage
You can use sfJqueryReloadedPlugin which allows to specify a path to jquery.js in your app.yml The plugin does not handle the UI extension yet. I guess you can set the path to your UI js in a custom property of app.yml. 2009/3/3 Lawrence Krubner > > I'm looking at this page: > > http://www.symf

[symfony-users] Re: unset and bugs !

2009-02-25 Thread Damien Lepage
If you unset elements from a form, you can't display them. You should remove all the $form['created_at'] from your template _form.php 2009/2/25 dcha > > Hello, > > I have an error message and I don't understand why ! > > http://img147.imageshack.us/img147/8458/sferr.png > > In lib/form/Complain

[symfony-users] Re: Prefix /:sf_culture to sfDoctrineRouteCollection

2009-02-23 Thread Damien Lepage
$#x > Tokens separator array (0 => '/',1 => NULL,) > text array (0 => 'routename',1 => NULL,) > separator array (0 => '/',1 => NULL,) > text array (0 => 'new',1 =>

[symfony-users] Re: extending doctrine schema with SQL views

2009-02-23 Thread Damien Lepage
at, if you're running on MYSQL, remember that view support > is really REALLY bad. > > If you've got more than one sub-select. or nested joins, mysql won't > use any indexes..... > > On Feb 23, 4:32 am, Damien Lepage wrote: > > Thanks for your suggestion Lawren

[symfony-users] Re: Prefix /:sf_culture to sfDoctrineRouteCollection

2009-02-23 Thread Damien Lepage
Try this: routename: class: sfDoctrineRouteCollection options: { model: JobeetJob } prefix_path: /:sf_culture/ 2009/2/23 sikk > > routename: > class: sfDoctrineRouteCollection > options: { model: JobeetJob } > > > Hi, > > Does someone have any idea how to make this route h

[symfony-users] Re: extending doctrine schema with SQL views

2009-02-22 Thread Damien Lepage
); Then I have a hook to create my views exactly where I want: class DatabaseInit { static public function createViews(sfEvent $event) { if( $event->getSubject() instanceof sfDoctrineInsertSqlTask ) { // create views here } } } Damien 2009/2/21 Lawrence Krubner > > D

[symfony-users] Re: extending doctrine schema with SQL views

2009-02-17 Thread Damien Lepage
nsert-sql* says: The task connects to the database and creates tables for all the lib/model/doctrine/*.php files. Anybody knows how to execute custom SQL script with Doctrine ? 2009/2/17 David Herrmann > > Damien Lepage schrieb: > > I would like to know if there is an easy way

[symfony-users] extending doctrine schema with SQL views

2009-02-16 Thread Damien Lepage
Hi, I would like to know if there is an easy way to automatically create views each time I rebuild my database. In other words, is there a place where I can put a custom script which will create my views and will be triggered when my database is built (by doctrine:build-db I think). I read about

[symfony-users] Re: chaining admin generators

2009-02-05 Thread Damien Lepage
Thanks for your answer Fred. Your example is slightly different than mine and easier to deal with. In your example, the only missing part is the list of posts available at: *http://domain.com/categories/:cat_id/posts* You're right, this list is easy to implement and, providing that your posts hav

[symfony-users] chaining admin generators

2009-02-04 Thread Damien Lepage
Hi all, I need to chain multiple admin generators and wonder if anyone has already done something like that. Here is the use case: I have groups and users. Each user can be in multiple groups and have a different role in each group. An administrator of a group should be able to change the roles

[symfony-users] Re: override countries translation

2009-01-17 Thread Damien Lepage
FileExt; if (is_file($filename) == false) { throw new sfException(sprintf('Data file for "%s" was not found.', $file)); } } // code to keep } 2009/1/4 Damien Lepage > Hi, > > I would like to

[symfony-users] override countries translation

2009-01-04 Thread Damien Lepage
Hi, I would like to override countries translation provided by Symfony in the file: symfony/lib/i18n/data/fr.dat I don't like the accents on the first upper case letter which break the natural alphabetical order. For example I would prefer "Etats-Unis" than "États-Unis". Does anyone know how to

[symfony-users] Re: Jobeet Tutorial - Doctrine

2008-12-31 Thread Damien Lepage
The alias to use in getWithJobs() is JobeetJobs, see ticket: http://trac.symfony-project.org/ticket/5429 I just finished Doctrine jobeet tutorial and I can tell you this is not the only issue you will encounter along the road. Most of the time, you'll find the answer to the problem in a ticket. D

[symfony-users] Re: unset vs display with admin generator

2008-12-30 Thread Damien Lepage
To my mind, not including the field in the display option should have > the same effect as unsetting it. > > Do you see what I mean now?? > > > On 29 Dec 2008, at 22:51, Damien Lepage wrote: > > > Hi, > > > > I think there is a good reason: the form is shared betwe

[symfony-users] Re: unset vs display with admin generator

2008-12-29 Thread Damien Lepage
Hi, I think there is a good reason: the form is shared between different views and you have different levels of configuration for them. For example, it does not make sense to unset a field because it is not displayed in the * list* view. It does not make sense either to unset a field because it is