
Search In
In Drupal 8, if we are required to add some Stylesheets or JavaScripts in a particular page then to achieve the goal we need THEME.info.yml and THEME.libraries.yml file of our theme.
Lets see how can we achieve it.
In the .info.yml
Superglobals variables in php are the built-in array. They are available in every scope. You can access the superglobal variable inside and outside the methods.
PHP Superglobals variables:
$_COOKIE
– contains values provided to the script via HTT
SINGLETON CLASS
In object-oriented programming , a singleton class is a class that can have only one object (an instance of the class) at a time.
It's good when you only want one object across the whole of your application
It is usually used in flex
Hi All,
Here are some basic and required git commands for starting purpose:
1: Set your name:
git config --global user.name "Your name"
2: Set your emails:
git config --global user.email your_email
3: Clone repository:
git clone git_repository
"An exception of type 'System.FormatException' occurred in mscorlib.dll but was not handled in user code while parsing String into DateTime."
I was trying to parse a string "27/06/2015" into the DateTime as follows:
string t
Hi all,
Below example will demonstrate, How to Initializing the model using an Angular controller, defined with a global function.
<html ng-app="nameApp">
<head>
<meta charset="utf-8">
<title>Angular.js Example<
String.replace method in javascript does not replace every occurrence of the string, it only replaces the first occurrence. To replace all occurrences of the string you must provide the replace() method a regular expression (or pass search string as
Hello Everyone, today I will guide you "to change add to cart text on product page by its type?"
If you want to change the add to cart text according to product type, the first thing is you have to get the product type. In the below code $product i
Install Github
First update the apt-get package lists with this command apt-get update then install git.
$ sudo apt-get update
$ sudo apt-get install git
Now git has been installed on Ubuntu, lets setup git.
How to set up Git
Now we need to do
In this blog tutorial, i will explain how to override magento blocks using an XML- based configuration file. Config.xml is module configuration file in which we will override magento block.
As magento best practices, we should not change any core fil
