FindNerd
FindNerd, a niche Social Technology Community welcomes all technocrats to collaborate with like minded people to enhance their tech skills via Ideation, Innovation & Integration.
Record Existence in CakePHP 3
06/16/2016 8:13 am
 CakePHP

CakePHP.jpg


I am writing this blog for them who are learning Cakephp 3. This blog will going to help you to find the solution for checking if record exists.

In Cakephp 2 we can check records which exist by using Model::hasAny . For Example:

  1. $conditions = array( 'User.id' => $this->Session->read('User.id'),

  2. 'User.security_key' => $this->Session->read('User.key') );

  3. if ($this->User->hasAny($conditions)){

  4. //do something

  5. }

Here is not the end. To read full blog about Record Existence in CakePHP 3 visit Findnerd.


Also read such more blogs about PHP and Cake PHP visit our Nerd Digest’s PHP Development Blogs Section.

0 Comments
Please login to post your comment..
Reach Us
One Commerce Center 1201 Orange Street #600 , Wilmington, Delaware, US, 19899
One Commerce Center 1201 Orange Street #600
Wilmington
Delaware
19899
US
Quick Contact