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

I' am not sure if these will work in a filter or not.

get_class ($object); // Returns the name of the class of an object
get_called_class (); // The "Late Static Binding" class name
get_parent_class ($object); // Retrieves the parent class name for object or class
gettype ($var); // Get the type of a variable

is_subclass_of ($object, $class_name, $allow_string = TRUE); // Checks if the object has this class as one of its parents or implements it

get_class_methods ($class_name); // Gets the class methods' names
get_class_vars ($class_name); // Get the default properties of the class
get_object_vars ($object); // Gets the properties of the given object
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Get controller name and method - by Smil3y - 06-02-2019, 10:59 PM
RE: Get controller name and method - by InsiteFX - 06-03-2019, 03:42 AM
RE: Get controller name and method - by kilishan - 06-03-2019, 06:34 AM
RE: Get controller name and method - by xGuRux - 06-06-2020, 03:32 AM
RE: Get controller name and method - by InsiteFX - 06-03-2019, 10:47 AM
RE: Get controller name and method - by Zeff - 06-04-2021, 06:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB