
Search In
set() is the way to set values in your controller and get those values in your view file.
Syntax of set is-> $this->set('variable','value')
In cake-php controller you can set the values as -
set('variable1','value1');
$this->set('varia
I have two dataframes. One is user(UserID, Name) and other one is rating (srcUserId, dstUserId, RatingValue). I have to merge these two dataframes such that in place of srcUserId I get the name of the user corresponding to userid from user dataf
In OpenERP we can create many2one and one2many relationships between models very easily by creating many2one and one2many fields. You just need to declare a field in _columns and then using this field normally in the rest programming and views as we
In this blog we will learn about array and it's type in Java. Array is defined as a collection of similar type of elements.
Array are seen as a collection of elements these elements belongs to sam
Python program to swap two variables in single line in python
Python program to swap two variables in single line
a = 5
b = 10
a, b = a, b
print "Swapped values of a and b are", a, b
Output
Swapped values of a and b are 10 5
Explanation:
Py
If you want to compute the difference of two or more than 2 array with index means to compare 2 array with the index of arrays for this you can use the predefined PHP function "array_diff_assoc()".
array_diff_assoc() compares array1 against array2 an
Sometimes we need to replace whole word with the word boundaries in a string. For this we use "\b" regular expression token which is called a word boundary. It usually matches at the start or the end of a word.
Example: You just need to place the wo
In case of using simple RewriteRule directive our URL changes with the query string as well but if we want to use the existing GET parameters along with the new parameters appended we should use the flag [QSA].Using flag [QSA] appends the new query s
This tutorial is to explain,the use of mixer brush,the various properties in it and how we relate it to original/physical painting process.This tutorial divides in two parts,first one is about the info of that tool and in other we use that tool on a
It is not possible to have two db queries in model hook of ember js router. You can either create two router files- one for fetching the new records from database and the another one for fetching record.
That is not a good approach to create two ro
