Find Jobs
Hire Freelancers

Will be needing some backend tasks done .

$8-15 CAD / hour

Cancelled
Posted over 6 years ago

$8-15 CAD / hour

Going through testing process and there are some issues that need fixed. Familiar with Yii2 will be helpful PHP and Bootstrap MySql I know not too many read these requirements before bidding and it makes for a prolonged process so this time I'm giving a skills test. I'll talk to the people that get it right. The following code ...as it is will call up some of users friends. If I switch the user_one_id and user_two_id around then the code will call up the rest of the users friends. How would you make this bit of code work to call up all friends Keep in mind that the code works perfectly both ways but each way only calls some friends public static function getFriendsID() { $friends_id = []; $friends = Friends::find()->where('user_one_id =:user_id', [':user_id' => Yii::$app->user->id])->asArray()->all(); if (!empty($friends)) { foreach ($friends as $friend) { $friends_id[] = (int)$friend['user_two_id']; } } return $friends_id; }
Project ID: 15602877

About the project

2 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $20 CAD/hour for this job
User Avatar
Hi there, I understand and can make this code working to work with "all friends". I'll need FTP access, along with steps to test (admin login if required, etc.) Thanks Rajesh Soni
$27 CAD in 2 days
5.0 (837 reviews)
8.4
8.4

About the client

Flag of CANADA
Fort St John, Canada
5.0
13
Payment method verified
Member since Jan 5, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.