Welcome Guest, Not a member yet? Register   Sign In
Best way create layouts library vs extend CI_Controller
#1
Question 

Hello guys

I'm start working with CI4 for testing propose and prepare the future migrations on my company website.

I have one simply question, Layout?

In the past i used the avenir approach (https://avenir.ro/create-cms-using-codei...dmin-area/), I Public_Controller with 1 layout and have Backoffice_Controller with another layout. It works fine for me.

But I also see another approach, the Library approach, (some old stuff here https://github.com/philsturgeon/codeigniter-template)

I recently find another one the Hook approach, (https://stackoverflow.com/questions/2956...nd-layouts)

So what is your opinion, what is the best approach for creating a layout system for CI4?


I like the extend My_controller approach, but I really confuse with the best way to do thing in CI4
Reply


Messages In This Thread
Best way create layouts library vs extend CI_Controller - by asalves - 01-06-2019, 03:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB