public function errorAction() { $config =
$this->container->
get(Config::
class);
if (!
$config->
get('RelatedArticlesOnArticleNotFound'
)) { throw new Enlight_Controller_Exception('Product not found', 404
);
} $this->
Response()->
setStatusCode($config->
get('PageNotFoundCode', 404
));
$this->
View()->
assign('sRelatedArticles',
$this->container->
get('modules'
)->
Marketing()->
sGetSimilarArticles( (int) $this->
Request()->
getParam('sArticle'
),
(int) $config->
get('maxcrosssimilar', 4
) ));
} /**
* Index action method
*
* Read the product details and base rating form data
* Loads on demand a custom template
*
* @return void
*/