Welcome Guest, Not a member yet? Register   Sign In
CI 3 should has partial view or user control
#3

Pretty easy. Create a "template" library, where the methods will load the header/footer/etc, and then you just pass it the "main" view for that page. You can use the 3rd parameter of load::view() to return the view instead of directly outputting it. Useful for templating.
Reply


Messages In This Thread
RE: CI 3 should has partial view or user control - by CroNiX - 02-09-2015, 10:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB