Welcome Guest, Not a member yet? Register   Sign In
Get name of parent method and classf
#2

You sholdn't use get_called_class ?

or you can declare you MY_Controller class in application/core with some fields like $class_name , ... and user it as parent of your controllers instead of CI_controller, so you can initialize that fields in __construct function for each subClass.
ressan.ir
CI is nice Heart
Reply


Messages In This Thread
RE: Get name of parent method and classf - by nasser.man - 06-13-2015, 04:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB