As for using PHP configuration, within AppKernel.php, you can modify
this:

public function registerContainerConfiguration(LoaderInterface
$loader)
{
    // Default:  $loader->load(__DIR__.'/config/config_'.$this-
>getEnvironment().'.yml');
    $loader->load(__DIR__.'/config/config_'.$this-
>getEnvironment().'.php');
}

You can find the available FileLoaders (I believe) here:
https://github.com/symfony/symfony/tree/master/src/Symfony/Component/DependencyInjection/Loader

I would have to recommend trying out twig as well.  Ryan Weaver's talk
in Paris briefly mentioned that many core developers and others were
initially skeptical of Twig, myself included, but have found it to be
a perfect fit for Symfony's view rendering engine.

Once you get past constantly "var_dump"ing in your views, Twig will do
just fine :)

On Apr 17, 4:47 am, robjensen82 <robjense...@gmail.com> wrote:
> Thanks very much for that Jordi, will have another go today.
>
> Rob
>
> On Apr 16, 8:48 pm, Jordi Boggiano <j.boggi...@seld.be> wrote:
>
>
>
>
>
>
>
> > On 15.04.2011 13:45, robjensen82 wrote:
>
> > > Hi there,
>
> > > I'm new to both Symfony2 and git, enjoying having a go with both at
> > > the moment. I've downloaded and extracted Symfony2 Standard Edtion
> > > PR11.
>
> > > 1. I'd like to keep my 'vendor bundles' up to date, so when PR12 or
> > > what ever comes out I'd like to be able to keep this up to date in the
> > > same way I could with SVN externals and symfony 1 with the lib/vendor/
> > > symfony directory. I assume this is all I'll need to update?  What's
> > > the best practice for doing this?
>
> > At the moment the best/only way to handle dependencies is to just run
> > the bin/vendors.sh script, if you run it again later, it will update the
> > vendors.
>
> > > 2. I would prefer for my app to use php configuration files, not yml,
> > > and php templates and not twig. Is it possible to run a task to
> > > rebuild a new app directory configured with php config files and php
> > > templates?
>
> > I don't think that's possible right now. Besides, while I don't feel too
> > strongly about you using php or yaml config files, I would really
> > recommend that you give twig a fair try before giving up on it. It
> > really improves readability and writability of templates, and I'm sure
> > once you get to know it you'll love it.
>
> > I'd also recommend you keep to yaml, because that's what everyone uses,
> > and getting help will be much easier that way than using php.
>
> > Cheers
>
> > --
> > Jordi Boggiano
> > @seldaek ::http://seld.be/

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

Reply via email to