How to use conditional view in fuelphp?

73 views Asked by At

I've a website built on fuelphp framework. I want to make a new version of this website with new design. I want to keep the both design.

I've thought the following two ways-

As my changes would be only on views I don't want to duplicate all the controllers. I just want to load the views dynamically with a condition. How can I do that?

1

There are 1 answers

0
Emlyn On

Themes would be perfect for this. It allows you to have different grouped sets of views that you can switch between by changing the active theme.

Documentation: http://fuelphp.com/docs/classes/theme/introduction.html