Skip to content

Magento Developer Posts

PHP – Difference between using self and $this

$this to refer to the current object. Use self to refer to the current class. In other words, use $this->member for non-static members, use self::$member for static members.

Comments closed

YouTube thumbnails Preview IMG

Each YouTube video has 4 generated images. They are predictably formatted as follows:

The first one in the list is a full-size image and…

Comments closed

Convert spaces to dash and lowercase with PHP

Yes, simply pass the return value of strtolower($blob) as the third argument of str_replace (where you have $string).

Comments closed

Magento 2 – Padding Utility Styles

Create padding-utility.less

 

Comments closed

Magento 2 DB Import Using SSH

Today, we will guide you can how to Import Database in Magento 2 Using SSH.

Example

Comments closed

Magento 2 – Get First Level Category list without any module

Get First Level Category list without any module Add phtml CMS Page

Add Code in cat-link.phtml

 

Comments closed

Add Body Class using Javascript

Add Body Class using Javascript

Comments closed
Copy link
Powered by Social Snap