[eluser]breastfed[/eluser]
Hello
i got a controller “cars”.
With the function() “brand” i want to select all entries with the matching brand. An example URL is: .com/cars/brand/ford or .com/car/brand/chevrolet
Now the URL .com/cars/brand/xxx is in my Mainnavigation, on every Page.
So i want to query on every Page all items from the table “brands” and run a foreach() to create my navigation. Where do i put the Query? In the View? In a Controller - which Controller?
Would be happy to get some help.
Thanks!