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

[eluser]InsiteFX[/eluser]
If a function is used in more then one Controller then you should create a MY_Controller and add the function there.

See:
Phil Sturgeon - CodeIgniter Base Classes: Keeping it DRY


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