News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Anna Filina's Blog:
Symfony - subfolders for partials
February 21, 2011 @ 11:14:32

Anna Filina has a new post to her site today about using subfolders for partials in Symfony applications and keeping them organized.

Symfony 1.2 - 1.4 expects all partials to follow this convention: templates/_partial.php. What happens when you need to organize your partials in subfolder? I tried a number of "Symfunky" avenues.

She tried a few ways - calling the helper with the include_partial method but it didn't resolve to the path she wanted. Next she tried a different path, but Symfony only interpreted it differently - and not the way she wanted. After a few more tries, she found a solution - using get_partial with a parameter that defined the subfolder to look in.

0 comments voice your opinion now!
symfony framework tutorial partial views subfolder


blog comments powered by Disqus

Similar Posts

Mfana Ronald Conco's Blog: RabbitMQ and PHP Part 1

Robert Bolton's Blog: Setting up Fedora Core 5 for Zend Framework

Blog.PHPDeveloper.org: Notes from the php|architect Zend Framework Webcast

Giri Mandalika's Sun Blog: MySQL Native Driver for PHP, mysqlnd

Brian Swan's Blog: Consuming "Dallas" Data with PHP


Community Events











Don't see your event here?
Let us know!


component podcast framework unittest package install hhvm symfony2 overview composer release opinion code hack threedevsandamaybe application introduction security language facebook

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework