0

I want to create a partial for a navigation bar which requires data from my DB. I've created a _top_nav.php partial at the global level of my frontend app. I'm then including the partial in my main layout and passing the data to the view in the normal way. However, it seems you can't pass data to a partial via the layout.

What's the best way to do this in Symfony 1.4 - should I be using a slot or a component instead?

halfer
  • 19,824
  • 17
  • 99
  • 186
codecowboy
  • 9,835
  • 18
  • 79
  • 134

1 Answers1

0

The answer is to use a component instead, as described in the "Gentle Introduction' Symfony 1.4 documentation (Section on Components)

codecowboy
  • 9,835
  • 18
  • 79
  • 134