[symfony-users] Re: Using Scriptable Configuration with database

2007-08-03 Thread Arnaud
To load data from the database, There is a very simple method : In a config.yml file. initialize(); $c = new Criteria(); $c->add(SitePeer::DOMAIN, $_SERVER['SERVER_NAME']); $config = SitePeer::doSelectOne($c); ?> all: site: id: getId() . "\n" ?> user_id: GetUs

[symfony-users] Re: Using Scriptable Configuration with database

2007-08-02 Thread Arnaud
Thanks, i look at this. Arnaud. On Aug 2, 3:01 pm, "Tristan Rivoallan" <[EMAIL PROTECTED]> wrote: > On 8/2/07, Arnaud <[EMAIL PROTECTED]> wrote: > > > Nobody has got an example of a config loaded by a database please ? > > no example, but it should not be difficult to write a database config >

[symfony-users] Re: Using Scriptable Configuration with database

2007-08-02 Thread Tristan Rivoallan
On 8/2/07, Arnaud <[EMAIL PROTECTED]> wrote: > Nobody has got an example of a config loaded by a database please ? no example, but it should not be difficult to write a database config compiler. take a look at classes in http://trac.symfony-project.com/trac/browser/trunk/lib/config ++ tristan

[symfony-users] Re: Using Scriptable Configuration with database

2007-08-02 Thread Arnaud
Nobody has got an example of a config loaded by a database please ? Thanks. Arnaud. --~--~-~--~~~---~--~~ 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@googleg