public function beforeRender() { parent::beforeRender(); $this->template->projectName = $this->baseDataService->getProjectName(); $this->template->categories = $this->categoryService->getRoot(); $this->template->currentCategory = $this->currentCategory; }
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(); }
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; }
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(); }
public function renderDefault() { $this->template->categories = $this->categoryService->getRoot(); }