Issue 1:
Currently all the twig files have to be put inside the Resources/views folder of the app or bundle folder. Some time ago a new option was added to add new paths where the file locator should search for. However, I'm unable to use it because it seems that they are ignored. We can analyze a simple test case where I want to have some templates inside the directory bundle/Resources/templates/mytemplate/views. I add the path to the config, then I render from a controller a template which resides in that folder with the usual string Bundle:MyControllerName:mytemplate.html.twig. This string is then converted to a resource location which starts with the @ and the file locator is called. However when a path starts with that symbol it doesn't call the locate method of the FileLocator class but it calls the locateResource method of the HttpKernel class which knows nothing about the paths and just throws the exception of file not found. Maybe I'm understanding wrong how the paths options should be used: if it's the case, then please help me understand how can I use custom path locations for my templates.

Issue 2:
symfony 2.0.0 beta 4.

Error

ErrorException: Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/etc/java) is not within the allowed path(s): (/home/tickets/:/tmp:/var/tmp:/usr/local/lib/php/) in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/Process/ExecutableFinder.php line 48

backtrace

in /usr/home/tickets/domains/tickets.antarion.ru/public_html/app/bootstrap.php.cache line 375

at ErrorHandler->handle()

at is_file() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/Process/ExecutableFinder.php line 48

at ExecutableFinder->find() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Bundle/AsseticBundle/DependencyInjection/Configuration.php line 60

at Configuration->getConfigTreeBuilder() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/Config/Definition/Processor.php line 52

at Processor->processConfiguration() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Bundle/AsseticBundle/DependencyInjection/AsseticExtension.php line 136

at AsseticExtension::processConfigs() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Bundle/AsseticBundle/DependencyInjection/AsseticExtension.php line 45

at AsseticExtension->load() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php line 41

at MergeExtensionConfigurationPass->process() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php line 39

at MergeExtensionConfigurationPass->process() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php line 109

at Compiler->compile() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php line 398

at ContainerBuilder->compile() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/app/bootstrap.php.cache line 861

at Kernel->buildContainer() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/app/bootstrap.php.cache line 790

at Kernel->initializeContainer() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/app/bootstrap.php.cache line 588

at Kernel->boot() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/app/bootstrap.php.cache line 713

at Kernel->loadClassCache() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/web/app_dev.php line 10