2009年8月29日星期六

[fw-mvc] Where to put common queries injected into layout?

Hi,

I would like to know where is the recommended place for common queries
and their results' injection into layouts, e.g.: fetching tags from
the database and inserting them into the footer in all actions within
the module. Should I use a plugin or an action helper? Or should I
just query the model right inside the layout?

Thanks,
Ádám

没有评论: