Ajit N

Opencart Resize Images

opencart has default functionality to resize image height and width. just put below code and set image name. $this->load->model(‘tool/image’); if ($image) { $image = $this->model_tool_image->resize($image, “300”,  “300”); }Read more …
keithg

How to change the Magento Admin URL / Path

How to change the Magento Admin URL / Path   To protect your Magento backend against hackers and brute-force attacks, we recommend that you change the default URL to the Magento Admin Panel. It is a quick way to add an extra layer of security to your site. Follow these steps to...Read more …
dhavalp

How to find average in cakephp 3

There is a different method to find average of the column in cakephp 3. refere below code to find average of the column. $query = $review->find(); $query->select([‘averagerating’ => $query->func()->avg(‘rating’)]) ->where([‘id’ => $review[‘id’]]) ->order([‘id’ => ‘DESC’]) ->first();Read more …