Hey, i'm sorry if i create to many posts - I just need help with getting started with Phalco, and it's many functions :-)
What i'm trying to do is, that i would like to display all my users, and if user is following an user, it will display the text "You are following"
I'm trying to do this, but i dont think it's the right way to do it.. :
$this->view->users = $this->modelsManager->createBuilder()
->from('Users')
->innerjoin('userfollows')
->orderBy('Users.id')
->limit(9)
->getQuery()
->execute();
foreach ($this->users as $test) {
if($test->following = $test->id){ // User id
echo 'You are following'
}
}
Hope you understand :-)