use yii\easyii\modules\news\api\News; use yii\easyii\modules\page\api\Page; use yii\easyii\modules\text\api\Text; use yii\helpers\Html; use yii\easyii\models\Setting; use app\modules\awarness\api\Feedback as Awarness; $page = Page::get('about'); $this->title = $page->seo('title', yii::t('easyii', 'awareness program')); use yii\widgets\ActiveForm; $this->params['meta_keyword'] = yii::t('easyii', 'Better sanitary napkin after birth, married for sanitary napkin, the best types of sanitary pads, better health towel menstrual cycle'); $this->params['meta_description'] = yii::t('easyii', 'Dry awareness program aims to provide care and health education for girls in schools & universities where they are providing the right information by experts'); ?> <div class="content"> <?php $banner = \app\modules\advertise\models\Page::find(1)->one(); Yii::$app->language == 'en' ? $image = $banner->image : ($image = $banner->image_ar); ?> <img class="img-responsive awwarenece" src="<?php echo $image; ?> "> <div class="container"> <div class="row"> <div class="col-md-12"> <?php $page = Page::get('know-more-about-us'); ?> <h2 class=" lined-heading"><span><?php
private function findPage($id_slug) { $page = PageModel::find()->where(['or', 'page_id=:id_slug', 'slug=:id_slug'], [':id_slug' => $id_slug])->one(); return $page ? new PageObject($page) : $this->notFound($id_slug); }
public function actionIndex() { $data = new ActiveDataProvider(['query' => Page::find()->pagedesc()]); return $this->render('index', ['data' => $data]); }