ZF-Commons / ZfcTwig

Zend Framework 2 Module that provides a Twig rendering strategy
BSD 3-Clause "New" or "Revised" License
96 stars 55 forks source link

Demonstrate headMeta/Link/Script helpers in layout example #44

Closed rmasters closed 11 years ago

rmasters commented 11 years ago

Might be a little pedantic (I use Assetic for this anyway) but I thought it might be helpful to show how to use the helpers in the layout example as well as the README for link/script.

spiffyjr commented 11 years ago

I intentionally didn't demonstrate them because people wanting to use Twig and coming fresh to the ZfcTwig project should be utilizing Twig's inheritance blocks instead of ZF's view helpers.

cosmin-harangus commented 11 years ago

I merged it because while people coming from Twig may know how to do this, everyone that comes from ZF1 or switching from ZF2 renderer may not know how to do this in Twig and they could use a clear example on how to use them in ZfcTwig.

spiffyjr commented 11 years ago

Understandable. I still think we should add some information about why they are no longer needed, though. I guess a case could be made for existing view helpers that use those helpers as there is no way to inject those into Twig blocks that I'm aware of.