2017-07-26 10:47:30 +02:00

40 lines
728 B
PHP

<?php
if (!defined('_CAN_LOAD_FILES_'))
exit;
include_once(dirname(__FILE__) . '../../../classes/AdvSiteReview.php');
class AdvSiteReviewsDefaultModuleFrontController extends ModuleFrontController
{
public $ssl = true;
public function __construct()
{
$this->auth = true;
parent::__construct();
$this->context = Context::getContext();
}
/**
* @see FrontController::initContent()
*/
public function initContent()
{
parent::initContent();
$reviews = AdvSiteReview::getReviews();
if (!$reviews) {
return false;
}
$this->context->smarty->assign('reviews', $reviews);
$this->setTemplate('advsitereviewspage.tpl');
}
}