Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
module views and classes/view
  • Hi, I'm just curious, whats the difference between the module/views and module/classes/view folder? I can't seem to find any answer on this forum.
    regards
  • view folder should not be inside the classes folder, you either have view folder inside the app folder or within a module.
  • Hi, You can have these two folders but it's not the same kind of files you will have in each of them. The "module/views" folder contains your views.
    The "module/classe/view" folder contains your ViewModels classes which contains the logic needed to generate your views. For more details about ViewModels, the documentation is pretty clear: http://fuelphp.com/docs/general/viewmodels.html.
  • For clarity: Sebastien is correct, the ViewModels still need views so you'll need both when using ViewModels and the "classes/view" dir can be ignored when you're just using Views.

Howdy, Stranger!

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

In this Discussion