Welcome Guest, Not a member yet? Register   Sign In
__construct my bad code with Ion Auth
#5

(07-19-2016, 04:20 PM)Sarog Wrote: I'm sorry. for understanding how it works, I took only some functions in Ion Auth/
I don't see MY_Controller

use MY_Controller as the base class and extends all your controller from it.the code which is required in all controller goes into MY_controller and you don't have to copy paste in each controller.

some common usages:
1)authentication code.
2)loading common libraries , helper or any other resources
3)enable disable profiler or caching
4) simple template system etc

google or search on git hub . you will find some good examples.
          Heart  love codeigniter Heart
          Learning  best  practices
     Rate my post if you found it helpfull
Reply


Messages In This Thread
__construct my bad code with Ion Auth - by Sarog - 07-19-2016, 03:56 PM
RE: __construct my bad code with Ion Auth - by jaynarayan - 07-19-2016, 10:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB