Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Share logic between views
  • Hello,
    I have some logic that I need within multiple views. Where should I put it? Can multiple views share a ViewModel?
  • Yes, you can pass a View to Viewmodel::forge(), it don't want to auto-detect-and-load mechanism to kick in.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion