return $templates;
}
+ public function _initRouter($initCms = true, $standard = true) {
+ profile(__FILE__, __LINE__, 'Init Router');
+ $router = parent::_initRouter($initCms, $standard);
+ $router->addStaticRoute('15000', 'landing', 'quinzemille');
+
+ return $router;
+ }
+
public function handleRedirections($req) {
profile(__FILE__, __LINE__, 'Handle redirection');
--- /dev/null
+<?php\r
+\r
+class LandingController extends CubeIT_Controller_PageController {\r
+ public function quinzemilleAction() {\r
+ $this->getSession()->coupon = 'PROMO15000';\r
+ if (rand(0, 1000) > 500) {\r
+ $this->redirect(CubeIT_View_Helper_Link::internal('devis-15000'));\r
+ } else {\r
+ $this->redirect('/');\r
+ }\r
+ }\r
+}
\ No newline at end of file