Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

падает на // Trigger the pre events


Recommended Posts

Привет, нужен хоть какой-то совет, помогите дилеинту пожалуйси.

Пыиюсь дорилиить обмен с 1С от Zenwalker для последней версии опенкари.

В обмене есть код:

$this->load->model('tool/ex1c');
$this->model_tool_ex1c->test();

При выполнении второй строки переходит и падает в модуле loader.php

 

$this->registry->get('event') возвращает null

 

// Trigger the pre events $result = $this->registry->get('event')->trigger('view/' . $trigger . '/before', array(&$route, &$data, &$template));

 

В $this->registry[data] просто нет поля event, однако при вызове из родных модулей опенкари это поле есть.

 

Что нужно сгделать, чтобы появилось это поле event, или как отклюлить этот механизм событий для своего модуля?

 

 

 

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.