Where to look for variables?

Open

/admin/view/template/catalog/product_form.tpl

I see there is a line

<?php echo isset($product_description[$language['language_id']]) ? 
$product_description[$language['language_id']]['name'] : "; ?>

Want to find that contains the variable $product_description. Go to the controller for this template

/admin/controller/catalog/product.php

And not find her there. Where could she be?
There are template files and controller https://yadi.sk/d/Hg9FvHRrso5B9
July 8th 19 at 11:55
1 answer
July 8th 19 at 11:57
Solution
for the template review_form.tpl standard controller is admin/controller/product/review.php
I there was a typo talking about the product_form.tpl has Fixed the issue - beryl.Metz commented on July 8th 19 at 12:00
: go to admin/model/catalog/product.php looking for there function getProductDescriptions() and before the eyes of all will be - manuel commented on July 8th 19 at 12:03
: Oh! began to understand. Found "$this->data['product_description'] = $this->model_catalog_product->getProductDescriptions($this->request->get['product_id']);" Can explain, if not more difficult, then the key of the array $data becomes a variable to template? - beryl.Metz commented on July 8th 19 at 12:06
:
1) in controller /admin/model/catalog/product.php prntscr.com/bl7re1
2) in the controller class /system/engine/controller.php prntscr.com/bl7rtq - manuel commented on July 8th 19 at 12:09

Find more questions by tags PHPOpenCart