original_string: public function actionForums($cid = null)
      {
          $model = Category::find()->where(['id' => $cid])->limit(1)->one();
          if (empty($model)) {
              $this->error(Yii::t('podium/flash', 'Sorry! We can not find Category with this ID.'));
              return $this->redirect(['admin/categories']);
          }
          return $this->render('forums', [
              'model' => $model,
              'categories' => Category::find()->orderBy(['sort' => SORT_ASC, 'id' => SORT_ASC])->all(),
              'forums' => Forum::find()->where(['category_id' => $model->id])->orderBy(['sort' => SORT_ASC, 'id' => SORT_ASC])->all()
          ]);
      }
code: public function actionForums($cid = null)
      {
          $model = Category::find()->where(['id' => $cid])->limit(1)->one();
          if (empty($model)) {
              $this->error(Yii::t('podium/flash', 'Sorry! We can not find Category with this ID.'));
              return $this->redirect(['admin/categories']);
          }
          return $this->render('forums', [
              'model' => $model,
              'categories' => Category::find()->orderBy(['sort' => SORT_ASC, 'id' => SORT_ASC])->all(),
              'forums' => Forum::find()->where(['category_id' => $model->id])->orderBy(['sort' => SORT_ASC, 'id' => SORT_ASC])->all()
          ]);
      }
code_tokens: public function actionForums ( $ cid = null ) { $ model = Category :: find ( ) -> where ( [ 'id' => $ cid ] ) -> limit ( 1 ) -> one ( ) ; if ( empty ( $ model ) ) { $ this -> error ( Yii :: t ( 'podium/flash' , 'Sorry! We can not find Category with this ID.' ) ) ; return $ this -> redirect ( [ 'admin/categories' ] ) ; } return $ this -> render ( 'forums' , [ 'model' => $ model , 'categories' => Category :: find ( ) -> orderBy ( [ 'sort' => SORT_ASC , 'id' => SORT_ASC ] ) -> all ( ) , 'forums' => Forum :: find ( ) -> where ( [ 'category_id' => $ model -> id ] ) -> orderBy ( [ 'sort' => SORT_ASC , 'id' => SORT_ASC ] ) -> all ( ) ] ) ; }
docstring: Listing the forums of given category ID.
  @param int $cid parent category ID
  @return string|Response
docstring_tokens: Listing the forums of given category ID .