protected function addGroupNamespace($controller)
    {
        if (! empty($this->groupStack)) {
            $group = end($this->groupStack);

            if (isset($group['namespace']) && strpos($controller, '\\') !== 0) {
                return $group['namespace'].'\\'.$controller;
            }
        }

        return $controller;
    }
protected function addGroupNamespace($controller)
    {
        if (! empty($this->groupStack)) {
            $group = end($this->groupStack);

            if (isset($group['namespace']) && strpos($controller, '\\') !== 0) {
                return $group['namespace'].'\\'.$controller;
            }
        }

        return $controller;
    }
protected function addGroupNamespace ( $ controller ) { if ( ! empty ( $ this -> groupStack ) ) { $ group = end ( $ this -> groupStack ) ; if ( isset ( $ group [ 'namespace' ] ) && strpos ( $ controller , '\\' ) !== 0 ) { return $ group [ 'namespace' ] . '\\' . $ controller ; } } return $ controller ; }
Add the group namespace to a controller.

@param string $controller

@return string
Add the group namespace to a controller .