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