Change the main content per controller change |
I've been making school projects and I need ideas on how it can be done
I have 2 view files that is always included when making controller methods I create a function where the main content will load based on the parameter supplied Here's the code: Code: public function nextPage($link){ Then using the method like this: Code: public function user_index(){ I've been thinking that it is not a good approach since I think the header and footer will also load upon loading the said section |
Messages In This Thread |
Change the main content per controller change - by nullstrike - 07-29-2017, 07:55 AM
RE: Change the main content per controller change - by Wouter60 - 07-29-2017, 11:14 AM
RE: Change the main content per controller change - by skunkbad - 07-29-2017, 11:46 AM
RE: Change the main content per controller change - by nullstrike - 07-29-2017, 05:44 PM
RE: Change the main content per controller change - by Wouter60 - 07-29-2017, 11:21 PM
RE: Change the main content per controller change - by nullstrike - 07-30-2017, 04:01 AM
|