public function actionView($id)
 {
     $counter = new \app\components\counter();
     $counter->hitsCounter('guide/view', $id);
     $model = TblGuides::findOne($id);
     $Attractions = TblGuides::find()->where(['cid' => $model->cid, 'published' => 1, 'langs' => $model->langs])->limit(10)->orderBy('rand()')->all();
     return $this->render('view', ['model' => $model, 'Attractions' => $Attractions]);
 }
 public function actionDelete($id)
 {
     $model = TblGuides::findOne($id);
     $model->delete();
     return $this->redirect(['index', 'cid' => $model->cid]);
 }