sGetArticleById example



        $number = $this->Request()->getParam('number');
        $selection = $this->Request()->getParam('group', []);

        $categoryId = (int) $this->Request()->get('sCategory');
        if (!$this->isValidCategory($categoryId)) {
            $categoryId = 0;
        }

        try {
            $product = $this->container->get('modules')->Articles()->sGetArticleById(
                $id,
                $categoryId,
                $number,
                $selection
            );
        } catch (Exception $e) {
            $product = null;
        }

        if (empty($product) || empty($product['articleName'])) {
            $this->forward('error');

            
Home | Imprint | This part of the site doesn't use cookies.