Get name of parent method and classf |
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 |
Messages In This Thread |
Get name of parent method and classf - by FlevasGR - 06-13-2015, 03:32 AM
RE: Get name of parent method and classf - by nasser.man - 06-13-2015, 04:10 AM
RE: Get name of parent method and classf - by Blair2004 - 06-13-2015, 08:06 AM
RE: Get name of parent method and classf - by Wouter60 - 06-13-2015, 09:03 AM
RE: Get name of parent method and classf - by Blair2004 - 06-13-2015, 01:07 PM
RE: Get name of parent method and classf - by FlevasGR - 06-14-2015, 06:23 AM
|