php - Warning: array_merge in admin side -
php - Warning: array_merge in admin side -
i created custom module. & utilize below code language file. so, working fine in opencart 1.5.6.4.
(admin\controller\module\custom.php)
$language = $this->load->language('module/custom'); $this->data = array_merge($this->data, $language);
but, not working in opencart 2.0.
get below error in admin side module in opencart 2.0
warning: array_merge() [function.array-merge]: argument #1 not array
how can prepare it?
would appreciate help.
i have remove $this->data
our code & working fine.
correct code.
$data = array_merge($language);
php opencart opencart2.x
Comments
Post a Comment