Ejemplo n.º 1
0
 public function actionFriends()
 {
     if (Yii::$app->request->isPost) {
         QueryModel::addTo(Yii::$app->request->get('id'));
     }
     $new = QueryModel::newFriends();
     $add = QueryModel::addFriends();
     $friends = QueryModel::friends();
     return $this->render('friends', ['friends' => $friends, 'new' => $new, 'add' => $add]);
 }