Disassemble the code module SKU generator, I can not understand why an array with URLs and what is happening there?

the code from the file controller sku generator
/* Set of urls */
$data['urls'] = array();
$data['urls']['generateAllSku'] = $this->url->link('extension/module/sku_generator/generateallSku', 'token=' . $this->session->data['token'], true);
$data['token'] = $this->session->data['token'];
March 23rd 20 at 19:45
1 answer
March 23rd 20 at 19:47
A link is created to generate Sku's for all products.
you can any tip on the subject or a little more?
why I have this array, if there are features that are transforming the items in the model? - neil_Runolfsdottir76 commented on March 23rd 20 at 19:50
@neil_Runolfsdottir76, On this piece of code certainly difficult to judge. But probably just below the template button to bring generateAllSku.
But what is stopping you? - ulises commented on March 23rd 20 at 19:53
@ulises, I just want to figure out what's what - neil_Runolfsdottir76 commented on March 23rd 20 at 19:56
@neil_Runolfsdottir76, Usually everything in the $data you need to output in the View - ulises commented on March 23rd 20 at 19:59

Find more questions by tags OpenCart