I think I figured out where to setup/create environment variables. I am using XML for configuration, so YAML users may need to convert the syntax. Environment variables can be created by using the <parameter> tag within the <parameters> tag. Each <parameter> has a 'key' attribute, which is what you use to refer to the value stored in the environment variable. In my case when I configure my database name with Doctrine DBAL, it should look like: <parameters> <parameter key="kernel.data_dir">[INSERT PATH]</parameter> </parameters> <doctrine:dbal driver="PDOSqlite" dbname="%kernel.data_dir%/test.sqlite" user="" password="" /> I still need to figure out where the path is relative to, or if you simply need to enter an absolute path (which is not ideal). I don't get any errors with this config, but the test.sqlite file is nowhere to be found. Is it possible it is ignoring the config and creating it in memory?
On Aug 11, 7:59 am, Donut <erichschroe...@gmail.com> wrote: > I'm trying to figure out how to configure a symfony 2 application to > create an sqlite database, but I cannot seem to figure out how to > configure the path. On the Doctrine Configuration webpage (http:// > docs.symfony-reloaded.org/guides/doctrine/configuration.html? > highlight=kernel) I see what looks to be like an environment variable > that either symfony or doctrine recognizes (%kernel.data_dir%), but I > don't know where that refers to. > Is there a place I could look that has a list of common environment > variables? > Perhaps even some documentation on how to create my own environment > variables within my symfony environment? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en