Dev

Dev brings you the power of programming and App Development with classic code snippets.

Namespaces in PHP

Namespaces in PHP

Today we are going to learn about Namespace in PHP.  Let’s start with definition of namespace So “Namespace are basically a way of organising your PHP classes and preventing from any kind of code conflicts . See this example , <?php namespace Webkul; //We have here a namespace with name Webkul and a class Name […]

Read More

JavaScript Scope

JavaScript Scope

JavaScript has a feature called scope. The concept of the scope in not that easy to understand for many new developers but I will try my best to explain them in simple way. Understanding scope will make your code better and key to writing bulletproof code and being a better developer. What Is Scope? In […]

Read More

Introduction to JSON-LD

Introduction to JSON-LD

JSON–LD, or JavaScript Object Notation for Linked Data, is a method of encoding Linked Data using JSON. Before talking about JSON-LD let’s first understand what is Linked Data? Linked data is a way of publishing structured data so that; it has more relationship with its conclusive meaning or logic. It is about applying the principles of the web to […]

Read More

Autoloading in PHP

Autoloading in PHP

Today we are going to learn how autoloader works in php. Let’s say we have a  file student.php which have a class name student i want to use this class instance somewhere in other file. For example i am using index.php if i want to create instance of the  student class then first i have to include […]

Read More

Opencart Recurring Profile

Opencart Recurring Profile

Opencart Recurring Profiles allow the admin to set up subscription-based products in which a customer places an order only once and is charged regularly based on the subscription frequency. It can also be used for setting up the installment payment schemes. The recurring payments are available for daily, weekly, monthly, semi-monthly or yearly. Admin can […]

Read More
css.php