public function getComponent($name)
    {
        if (!$this->activePartial) {
            return null;
        }

        $component = $this->findComponentFromStack($name, $this->activePartial);
        if ($component !== null) {
            return $component;
        }

        foreach ($this->partialStack as $stack) {
            $component = $this->findComponentFromStack($name, $stack);
            if ($component !== null) {
                return $component;
            }
        }

        return null;
    }
public function getComponent($name)
    {
        if (!$this->activePartial) {
            return null;
        }

        $component = $this->findComponentFromStack($name, $this->activePartial);
        if ($component !== null) {
            return $component;
        }

        foreach ($this->partialStack as $stack) {
            $component = $this->findComponentFromStack($name, $stack);
            if ($component !== null) {
                return $component;
            }
        }

        return null;
    }
public function getComponent ( $ name ) { if ( ! $ this -> activePartial ) { return null ; } $ component = $ this -> findComponentFromStack ( $ name , $ this -> activePartial ) ; if ( $ component !== null ) { return $ component ; } foreach ( $ this -> partialStack as $ stack ) { $ component = $ this -> findComponentFromStack ( $ name , $ stack ) ; if ( $ component !== null ) { return $ component ; } } return null ; }
Returns a component by its alias from the partial stack.
Returns a component by its alias from the partial stack .