<p dir="auto">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.</p>
<p dir="auto">symfony 2.0.0 beta 4.<br>
Error<br>
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</p>
<p dir="auto">backtrace<br>
in /usr/home/tickets/domains/tickets.antarion.ru/public_html/app/bootstrap.php.cache line 375<br>
at ErrorHandler-&gt;handle()<br>
at is_file() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/Process/ExecutableFinder.php line 48<br>
at ExecutableFinder-&gt;find() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Bundle/AsseticBundle/DependencyInjection/Configuration.php line 60<br>
at Configuration-&gt;getConfigTreeBuilder() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/Config/Definition/Processor.php line 52<br>
at Processor-&gt;processConfiguration() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Bundle/AsseticBundle/DependencyInjection/AsseticExtension.php line 136<br>
at AsseticExtension::processConfigs() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Bundle/AsseticBundle/DependencyInjection/AsseticExtension.php line 45<br>
at AsseticExtension-&gt;load() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php line 41<br>
at MergeExtensionConfigurationPass-&gt;process() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php line 39<br>
at MergeExtensionConfigurationPass-&gt;process() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php line 109<br>
at Compiler-&gt;compile() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/vendor/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php line 398<br>
at ContainerBuilder-&gt;compile() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/app/bootstrap.php.cache line 861<br>
at Kernel-&gt;buildContainer() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/app/bootstrap.php.cache line 790<br>
at Kernel-&gt;initializeContainer() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/app/bootstrap.php.cache line 588<br>
at Kernel-&gt;boot() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/app/bootstrap.php.cache line 713<br>
at Kernel-&gt;loadClassCache() in /usr/home/tickets/domains/tickets.antarion.ru/public_html/web/app_dev.php line 10</p>