
Search In
Before going into the details of “attr_accessible”, the best thing would be to understand why it was needed.
It was basically needed to avoid the Mass-assignment Attack.
For that we need to know about Mass-assignment :-
Mass-assignment is u
In laravel 5.0 the way to define constants and use them through out the project. Following are the steps to accomplish it:-
Step 1st :- Creating a separate file under /config folder named as constants.php ( it can be any name) for storing all consta
if you are planing to create an e Commerce application from scratch then there are possibilities that you will create Categories section in your application. Now at the beginning you may be asking yourself what is the best way to create multi-level c
Autoloading of modules/classes from lib directory is no more supported by Rails 3. There has been number of if and buts in its support and against but unfortunately it has been removed. While lazy loading was a very good feature where developer need
MIME stands for - Multi-purpose Internet Mail Extensions.
MIME types represents a unique file types as pre-defined over Internet.
Web servers and browsers have a list of MIME types, which make a medium for files transfer of the same type in the
Selectors are the entity which we used to select HTML elements from web page in jQuery. Selector in jQuery always start with dollar($)sign and parentheses like as $().
There are three ways to select the elements in a web page.
1) Select elemen
Hi if you are using php version 5.3 or greater then some functions are really very quick to write and use.
In this blog I am calculating the days between your given two dates.
This is by far the most accurate way of calculating the difference:
This
Updation in CakePHP is basically based on knowing the primary key(Id) of the records one wants to change/edit.
You can update a field in CakePhp by two ways:-
a)By using saveField method
$this->ModelName->id=$id;
$this->ModelName->
Maven can be configured in two ways in eclipse.
Ist method:
Open Eclipse
Goto Help >> Install New Software.
Enter the URL "http://download.eclipse.org/technology/m2e/releases "in Work" with field and press enter button.
Select maven and pre
While working in rails we make use of partials very often and there are case where we make use of same partial for different scenario. We try to achieve the same by passing default parameter for some unwanted variable which might case issue. Passing
