How to find the value of a single field in cakePHP

Use the model method field if no matching data is found it returns false.


	$this->Model->id = 10;

The example above displays the value of the name field in the database where the idis equal to 10

Read more here

Image Credits: Photo by Isis França on Unsplash.

More Similar Posts

No results found.