__construct my bad code with Ion Auth |
(07-19-2016, 04:20 PM)Sarog Wrote: I'm sorry. for understanding how it works, I took only some functions in Ion Auth/ 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.
love codeigniter
Learning best practices Rate my post if you found it helpfull |
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 InsiteFX - 07-19-2016, 04:09 PM
RE: __construct my bad code with Ion Auth - by Sarog - 07-19-2016, 04:20 PM
RE: __construct my bad code with Ion Auth - by InsiteFX - 07-19-2016, 04:50 PM
RE: __construct my bad code with Ion Auth - by jaynarayan - 07-19-2016, 10:59 PM
RE: __construct my bad code with Ion Auth - by Avenirer - 07-19-2016, 11:21 PM
|