public function addSubController($pTriggerUrl, $pControllerClass = '')
    {
        $this->normalizeUrl($pTriggerUrl);

        $base = $this->triggerUrl;
        if ($base == '/') $base = '';

        $controller = new Server($base . $pTriggerUrl, $pControllerClass, $this);

        $this->controllers[] = $controller;

        return $controller;
    }
public function addSubController($pTriggerUrl, $pControllerClass = '')
    {
        $this->normalizeUrl($pTriggerUrl);

        $base = $this->triggerUrl;
        if ($base == '/') $base = '';

        $controller = new Server($base . $pTriggerUrl, $pControllerClass, $this);

        $this->controllers[] = $controller;

        return $controller;
    }
public function addSubController ( $ pTriggerUrl , $ pControllerClass = '' ) { $ this -> normalizeUrl ( $ pTriggerUrl ) ; $ base = $ this -> triggerUrl ; if ( $ base == '/' ) $ base = '' ; $ controller = new Server ( $ base . $ pTriggerUrl , $ pControllerClass , $ this ) ; $ this -> controllers [ ] = $ controller ; return $ controller ; }
Attach a sub controller.

@param string $pTriggerUrl
@param mixed  $pControllerClass A class name (autoloader required) or a instance of a class.

@return Server new created Server. Use done() to switch the context back to the parent.
Attach a sub controller .