How to find the value of a single field in cakePHP

H

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

Example

 
	$this->Model->id = 10;
 
	$this->Model->field('name');

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

Read more here

About the author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

About Author

Ian Carnaghan

I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment.

Follow Me