Advertisement
Guest User

Untitled

a guest
May 26th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. public function follow($follower_id = null, $followed_id = null )
  2.     {
  3.         $follows = $this->Users->Follower->newEntity();
  4.        
  5.         $follows->follower_id = '1';
  6.         $follows->followed_id = '2';
  7.        
  8.         $this->Users->Follower->Save($follows,$follower_id, $followed_id);
  9.      
  10.         return $this->redirect(['action' => 'index']);
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement