コード例 #1
0
ファイル: cartbox.php プロジェクト: krisldz/Gekosale2
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->cartModel = App::getModel('cart');
     $this->paymentModel = App::getModel('payment');
     $this->deliveryModel = App::getModel('delivery');
 }
コード例 #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'];
 }
コード例 #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');
 }
コード例 #4
0
ファイル: productbox.php プロジェクト: volfen/Gekosale2
 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'];
 }
コード例 #5
0
ファイル: contactbox.php プロジェクト: krisldz/Gekosale2
 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();
 }
コード例 #6
0
ファイル: checkoutbox.php プロジェクト: krisldz/Gekosale2
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->clientModel = App::getModel('client');
 }
コード例 #7
0
ファイル: registrationbox.php プロジェクト: krisldz/Gekosale2
 public function __construct($registry, $box)
 {
     parent::__construct($registry, $box);
     $this->model = App::getModel('client');
     $this->layer = $this->registry->loader->getCurrentLayer();
 }