Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function follow($follower_id = null, $followed_id = null )
- {
- $follows = $this->Users->Follower->newEntity();
- $follows->follower_id = '1';
- $follows->followed_id = '2';
- $this->Users->Follower->Save($follows,$follower_id, $followed_id);
- return $this->redirect(['action' => 'index']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement