
Search In
Hello readers, today we discuss about "How to add a simple jQuery script to WordPress?".
There are two way to add script in our wordpress.
In header.php file, and in function.php file
In header.php file you can put the below line into head section
There are two ways to dynamically access object property:-
1.Dot Notation
2.Bracket notation
var eg = {“first1”: "101", “second”: "202"};
console.log(eg.first1);
var key1 = “first”+1; alert(eg1); // first1
console.log(eg[key1]);
The dot notatio
Let’s talk about a constructor. It is actually a function to serve the purpose of using as a constructor. You can write a function to use it as a constructor or call it as a normal function, or use it both ways.
You can easily perform the task of cr
All major development or changes to a site should be performed on the development machine and once thoroughly tested then only be implemented to the live site.
There are chances when you have to make changes on live site directly. In this case y
Now a days there are n number of website which will move to android. So for every application we have to make API. If we will make our API in laravel 4.x then we will test using Postman. To define our port and to run our API using "Postman" we have t
In Laravel 4.x we have many facility to use query in a easy way. We will also run raw query in laravel 4.x. Laravel 4.x also provide of using “order by” query using Eloquent ORM.
We can easily understand this by seeing the example of order by:
E
CSS plays an important role in every project. In Laravel 4.x we will define our css in:
public/css/custom.css
Here In above path we will define our css in laravel 4.x
To call a view from controller we will use the code as follow:
Example:
retur
The echo and print are similar ones as they are not a functions they are the language constructs.
echo
The echo as a language construct it outputs one or more strings. The echo has a void data type.As it is a construct and not a function so it won
We can easily auto-load libraries in Laravel 4.x by using namespaces in our application. Then put all libraries you code under that namespace.
Suppose our directory structure would then be:
libraries
Myapp
Search (note directory is capi
We can handle default error in PHP in a very simple way. This can be done by sending an error message with its filename, error line number and a message that describes the error to the browser.
Error handling plays an important role whenever we make
