Welcome Guest, Not a member yet? Register   Sign In
Is adding functions to CI_Controller bad practice?
#8

[eluser]TWP Marketing[/eluser]
[quote author="coldscooter" date="1332969629"]If i create a My_Controller, then wouldn't i need to change all my other controllers to extend that? ...[/quote]

Yes, All of YOUR controllers will extend MY_Controller, which itself extends the core CI controller. Read the link by Phil Sturgeon about why this is desirable. This way, if the core code is updated, you should ,b>not</b> need to dig into the new code to re-apply your methods/functions.


Messages In This Thread
Is adding functions to CI_Controller bad practice? - by El Forum - 03-28-2012, 02:08 PM
Is adding functions to CI_Controller bad practice? - by El Forum - 03-28-2012, 02:14 PM
Is adding functions to CI_Controller bad practice? - by El Forum - 03-28-2012, 02:17 PM
Is adding functions to CI_Controller bad practice? - by El Forum - 03-28-2012, 02:18 PM
Is adding functions to CI_Controller bad practice? - by El Forum - 03-28-2012, 02:20 PM
Is adding functions to CI_Controller bad practice? - by El Forum - 03-28-2012, 02:39 PM
Is adding functions to CI_Controller bad practice? - by El Forum - 03-28-2012, 02:43 PM
Is adding functions to CI_Controller bad practice? - by El Forum - 03-28-2012, 03:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB