Welcome Guest, Not a member yet? Register   Sign In
How to organize applications ?
#20

(This post was last modified: 12-26-2020, 09:01 PM by John_Betong.)

@ MathCmsCode,

I created a Base_Controller which all the controllers extend. The Base_Controller detects the URI and sets a public $uri variable. This variable is checked (in a switch statement) and the relevant CSS and JavaScript files included in a common HTML Header file... which is included in all the views.

https://codeigniter.com/user_guide/exten...controller
Reply


Messages In This Thread
How to organize applications ? - by jocm.aguiar - 12-15-2019, 06:25 AM
RE: How to organize applications ? - by InsiteFX - 12-15-2019, 09:19 AM
RE: How to organize applications ? - by InsiteFX - 12-17-2019, 12:21 PM
RE: How to organize applications ? - by InsiteFX - 12-22-2019, 12:59 PM
RE: How to organize applications ? - by ZoeF - 04-14-2020, 12:10 PM
RE: How to organize applications ? - by InsiteFX - 04-14-2020, 12:44 PM
RE: How to organize applications ? - by InsiteFX - 04-25-2020, 07:57 AM
RE: How to organize applications ? - by jreklund - 05-21-2020, 07:45 AM
RE: How to organize applications ? - by InsiteFX - 05-21-2020, 08:40 AM
RE: How to organize applications ? - by jreklund - 05-22-2020, 09:56 AM
RE: How to organize applications ? - by InsiteFX - 11-28-2020, 12:47 AM
RE: How to organize applications ? - by John_Betong - 12-26-2020, 09:00 PM
RE: How to organize applications ? - by isoftzone - 02-13-2021, 04:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB