over 9 years ago
In cakephp we might be familiar with the simple find("all") and findById() functions.
But fetching data with some conditions like we write select query with where condition.
lets us first look at simple find function
This function will fetch all the data from the model.But instead of all if we are required to fetch some data with some condition can be done as :
In the above we have set one condition in the function but we can set many. Below is the list of other possible conditions we can set:
0 Comment(s)