/**
  * Creates data provider instance with search query applied
  *
  * @param array $params
  *
  * @return ActiveDataProvider
  */
 public function search($params)
 {
     $query = FooterContent::find();
     $dataProvider = new ActiveDataProvider(['query' => $query]);
     $this->load($params);
     if (!$this->validate()) {
         // uncomment the following line if you do not want to any records when validation fails
         // $query->where('0=1');
         return $dataProvider;
     }
     $query->andFilterWhere(['id' => $this->id]);
     $query->andFilterWhere(['like', 'name', $this->name])->andFilterWhere(['like', 'content', $this->content])->andFilterWhere(['like', 'lang', $this->lang]);
     return $dataProvider;
 }
 /**
  * Finds the FooterContent model based on its primary key value.
  * If the model is not found, a 404 HTTP exception will be thrown.
  * @param integer $id
  * @return FooterContent the loaded model
  * @throws NotFoundHttpException if the model cannot be found
  */
 protected function findModel($id)
 {
     if (($model = FooterContent::findOne($id)) !== null) {
         return $model;
     } else {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
 }
    <div class="decoration"></div>
    </div>


            <!-- Page Footer-->
            <div class="footer">
                <div class="footer-socials half-bottom">
                    <a href="https://www.facebook.com/etap.az" target="_blank" class="footer-facebook"><i class="fa fa-facebook"></i></a>
                    <a href="#" class="footer-twitter"><i class="fa fa-twitter"></i></a>
                    <a href="#" class="footer-google"><i class="fa fa-google-plus"></i></a>
                    <a href="#" class="footer-vk"><i class="fa fa-vk"></i></a>
                    <a href="#" class="footer-share show-share-bottom"><i class="fa fa-share-alt"></i></a>
                    <a href="#" class="footer-up"><i class="fa fa-angle-up"></i></a>
                </div>
                <?php 
$copyright = FooterContent::find()->where(['name' => 'copyright', 'lang' => Yii::$app->language])->orderBy(['id' => SORT_DESC])->one();
?>
                <p class="center-text">e-Tap.az | &copy; <?php 
echo date('Y');
?>
 &copy; <?php 
echo $copyright['content'];
?>
</p>
            </div>

        </div>

       

    </div>