Anyone familiar with the symfony framework?
Posted: Wed Mar 28, 2007 5:56 pm
I'm having a bit of a "basic" crisis. It's my first few hours using symfony to re-code an existing website which didn't use a framework at first.
The View layer in symfony seems really well thought out so I'm sure there's a simple one-line answer to my question.
There are various View components that are available to use (Layout, Templates, Components, Partials, Slots) but I'm not sure what to use here. In the layout I have some dynamic "components" that need to appear on every single page. These are trivial things like hit-counters and RSS readers.
Unless I'm missing something, I don't appear to be able to create a "global" component that applies to all modules. I have to create the component within a module. This feels like a bit of a hack since a hit-coiunter for example should not be so tightly linked to any one part of the system. Partials can be global, so why not components?
Thanks in advance if anyone knows
The View layer in symfony seems really well thought out so I'm sure there's a simple one-line answer to my question.
There are various View components that are available to use (Layout, Templates, Components, Partials, Slots) but I'm not sure what to use here. In the layout I have some dynamic "components" that need to appear on every single page. These are trivial things like hit-counters and RSS readers.
Unless I'm missing something, I don't appear to be able to create a "global" component that applies to all modules. I have to create the component within a module. This feels like a bit of a hack since a hit-coiunter for example should not be so tightly linked to any one part of the system. Partials can be global, so why not components?
Thanks in advance if anyone knows