Exemplo n.º 1
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->cartModel = App::getModel('cart');
     $this->paymentModel = App::getModel('payment');
     $this->deliveryModel = App::getModel('delivery');
 }
Exemplo n.º 2
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->productid = App::getModel('product')->getProductIdBySeo($this->getParam());
     $this->productModel = App::getModel('product/product');
     $this->product = $this->productModel->getProductAndAttributesById((int) $this->productid);
     $this->heading = $this->product['productname'];
 }
Exemplo n.º 3
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     if (Session::getActiveClientid() == NULL) {
         App::redirectUrl($this->registry->router->generate('frontend.home', true));
     }
     $this->model = App::getModel('client');
 }
Exemplo n.º 4
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->productid = App::getModel('product')->getProductIdBySeo($this->getParam());
     $this->productModel = App::getModel('product/product');
     $this->product = $this->productModel->getProductAndAttributesById((int) $this->productid);
     if (empty($this->product)) {
         App::redirectUrl($this->registry->router->generate('frontend.home', true));
     }
     $this->heading = $this->product['productname'];
 }
Exemplo n.º 5
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     if ((int) $this->registry->core->getParam() > 0) {
         $this->product = App::getModel('product')->getProductAndAttributesById((int) $this->registry->core->getParam());
         if (empty($this->product)) {
             App::redirectUrl($this->registry->router->generate('frontend.home', true));
         }
     }
     $this->layer = $this->registry->loader->getCurrentLayer();
 }
Exemplo n.º 6
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->clientModel = App::getModel('client');
 }
Exemplo n.º 7
0
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->model = App::getModel('client');
     $this->layer = $this->registry->loader->getCurrentLayer();
 }