aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/GenericController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2012-01-11 17:13:07 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2012-01-11 17:13:07 +0000
commit10f51945ac703a80421f7a1d3aee36101e6485bc (patch)
treecfb08847b2b1546f506317128b0247019c750b02 /h-source/Application/Controllers/GenericController.php
parent2fee8068c26773b3ff8ca1b822a5a363c6b639af (diff)
mobile version: added catalogue page for each device category
Diffstat (limited to 'h-source/Application/Controllers/GenericController.php')
-rw-r--r--h-source/Application/Controllers/GenericController.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php
index 3a8c1f0..adf2555 100644
--- a/h-source/Application/Controllers/GenericController.php
+++ b/h-source/Application/Controllers/GenericController.php
@@ -28,8 +28,11 @@ class GenericController extends BaseController
public $orderPopup;
public function __construct($model, $controller, $queryString) {
- parent::__construct($model, $controller, $queryString);
+
+ $this->_topMenuClasses['hardware'] = " class='currentitem ui-btn-active'";
+ parent::__construct($model, $controller, $queryString);
+
$this->model('UsersModel');
$popup = new Popup();
@@ -64,7 +67,7 @@ class GenericController extends BaseController
$data['howToCompileLabel'] = null;
$data['isApproved'] = true;
-
+
$this->append($data);
}
@@ -481,6 +484,7 @@ class GenericController extends BaseController
// echo $this->mod->getQuery();
$data['pageList'] = $this->h['Pages']->render($page-3,7);
+ $data['numberOfPages'] = $this->h['Pages']->getNumbOfPages();
$data['topNotice'] = $this->getModule(array('devices',$this->controller,'catalogue'));