
Search In
Media query is css technique that is being introduce in css3.
It is used to set the css and display the page properly when seen on the different screen size.
It uses $media rule to include a block of the css only if a certain condidtion is true.
e
If we need to display the preview of the image on upload, we can write a simple javascript function to perform the same this can be done as :
<!DOCTYPE html>
<html>
<body>
<script>
function img(x) {
document.getElemen
If we are required to Create elements and add it in layouts and views ithe can do it as In app/views/elements folder create an element file adminsidebar.ctp with the below code :
<?php
echo “Hello Cakephp !!”;
?>
Call the elem
Draw radius around a point in Google Map
I want to add 10 miles radius around each marker. This is a very good example which will explain you how it works : https://www.freemaptools.com/radius-around-point.htm . This example will show you that how t
Static variables and methods is very useful feature in Php oops. We can access static method and variable outside and within class, without creating object of these class. Often, we hear about static class, but there are no class is static, actually
$uses:
$uses is used to load model in a controller. It defines which models the controller has access to by default. We can load multiple models easily using $uses. But it is not a good practice to load all models at once. Best way
A copy constructor is a special type of constructor by using which we can initialize the data members of a newly created object by existing objects. The compiler provides a default copy constructor.
Syntax of calling a copy constructor is:
co
Hello Readers, today we discussed about PHP Magic function Construct and Destruct.
The most frequent of PHP's magic approach is __construct() method and __destruct(). When you've been following along with the Building Cribbb series I'm s
Many time you need to refresh your page without reloading the whole page.
Some time you need it to be done automatically after a certain time.
You can do it by ajax and jquery.
Here i am writing a function which will refresh div after 10 sec.
Extension method in .net is very important feature and good practice for reusable code. Extension method is a static method of a static class that can be invoked using the instance method syntax. Extension methods are used to add new behaviors to an
