Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
RecordNotFoundException
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :configure_permitted_parameters, if: :devise_controller?
protected
def configure_permitted_parameters
devise_parameter_sani...
Adding method using CakePHP
There are different type of methods that we can use in cakePHP to add functionality.
1. constructClasses()- This method load the model required by the controller. This can be used while in the command line prompt.
2.referrer(mixed $default ...
Create classes in ruby
Ruby is a pure object oriented language and everything in ruby is an object of some class. In ruby we can create classes and create objects of the classes. In the below example we will create 3 classes Person, Address and Company. An object of...
Laravel 5.0 Creating Request Handler
In Lavarel one of the best practice is to use form validation rules to validate the submitted data. There are number of ways to do it . One way is to create form validation rules both in the controller or we can create a separate file under the a...
Static Keyword
Static Keyword
Static keyword can be applied on
1.Method
2.Variable
3.Class nested within another Class
4.Initialization Block
Static keyword can not be applied to
1.Class (Not Nested)
2.Constructor
3.Interface
4.Met...
Final Keyword
Final is keyword that can be used before a class or method or a variable.
Final Class
They can not be subclassed and the method in it are by default final.
public final class MyFinalClass {...}
public class ThisIsWrong extends MyFinal...
Method Overriding
Method Overriding is a type of polymorphism.
It is dynamic type of polymorphism.
In this we have the method with the similar name in both parent class and child class.
But the child class override the method of the parent class when we create ...
Method Overloading
Method Overloading is a type of polymorphism.
Using this we can have two different method having the same name in a single class.
Method have the same name but different argument through which they are recognize.
Argument have
1.Different num...
Javascript getDay() method
JavaScript getDay() Method
Return the day of the week:
var d = new Date();
var n = d.getDay();
This method is used for getting the days of week from 0-6 for the date specified.
in this 0 stand for sunday and 1 stand for monday.
Synt...