Example #1
0
 public function beforeRender()
 {
     parent::beforeRender();
     $this->template->projectName = $this->baseDataService->getProjectName();
     $this->template->categories = $this->categoryService->getRoot();
     $this->template->currentCategory = $this->currentCategory;
 }
Example #2
0
 public function render()
 {
     $this->template->categories = $this->categoryService->getRoot();
     $this->template->editedCategory = $this->editedCategory;
     $this->template->rootCategoryKey = CategoriesForm::ROOT_CATEGORY_KEY;
     $this->template->setFile(__DIR__ . '/CategoriesFormControl.latte');
     $this->template->render();
 }
Example #3
0
 public function beforeRender()
 {
     parent::beforeRender();
     $this->template->categories = $this->categoryService->getRoot();
     $this->template->currentCategory = $this->currentCategory;
     $this->template->cart = $this->currentCartService->getCurrentCart();
     $this->template->user = $this->user;
 }
Example #4
0
 public function render()
 {
     $this->template->product = $this->editedProduct;
     $this->template->categories = $this->categoryService->getRoot();
     $this->template->formDiscountPercentKey = ProductForm::DISCOUNT_PERCENT;
     $this->template->formDiscountNominalKey = ProductForm::DISCOUNT_NOMINAL;
     $this->template->imagesDir = $this->imagesDir;
     $this->template->setFile(__DIR__ . '/ProductFormControl.latte');
     $this->template->render();
 }
Example #5
0
 public function renderDefault()
 {
     $this->template->categories = $this->categoryService->getRoot();
 }