Code: Select all
/image/icons/my.png
Code: Select all
sites-images/my.png
Code: Select all
/image/icons/my.png
Code: Select all
sites-images/my.png
Code: Select all
$this->load->model('tool/image');
$data['my_image'] = $this->model_tool_image->resize($product_info['my_image'], $this->config->get('theme_' . $this->config->get('config_theme') . '_image_thumb_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_thumb_height'));
Code: Select all
$data['my_image'] = DIR_IMAGE . 'my_image.ext';
Code: Select all
{% if my_image %}
<img src="{{ my_image }}">
{% endif %}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
OC version. You ain't doing it right.Miftaul_Jannat wrote: ↑Thu Sep 01, 2022 5:14 pm$data['my_image'] = DIR_IMAGE . 'my_image.ext';
here "my_image.ext" I use my image name "pcbuilder_logo.png" but it doesn't work. What should I do?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 515 guests