public static function getNSShortname($instance) { $r = new ReflectionClass($instance); return $r->getShortName(); }
/** * Get the prefix name of this controller, used for path calculations for element views * * @return string */ protected function getControllerPrefix() { return strtolower(str_replace('Controller', '', Helper::getNSShortname($this))); }