/** * Returns the data model based on the primary key given in the GET variable. * If the data model is not found, an HTTP exception will be raised. * @param integer $id the ID of the model to be loaded * @return Streem the loaded model * @throws CHttpException */ public function loadModel($id) { $model = Streem::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }
<p><span><i><?php echo Yii::app()->language == 'ru' ? Streem::model()->findByPk(1)->name_ru : Streem::model()->findByPk(1)->name_uk; ?> </i></span></p> <iframe width="100%" height="270px" src="<?php echo Streem::model()->findByPk(1)->url; ?> ?chat=0" frameborder="0" allowfullscreen></iframe> </div> <div class="tab-pane" id="stream2"> <p><span><i><?php echo Yii::app()->language == 'ru' ? Streem::model()->findByPk(2)->name_ru : Streem::model()->findByPk(2)->name_uk; ?> </i></span></p> <iframe width="100%" height="270px" src="<?php echo Streem::model()->findByPk(2)->url; ?> ?chat=0" frameborder="0" allowfullscreen></iframe> </div> </div> <ul class="nav nav-tabs"> <li class="active"><a href="#stream1" data-toggle="tab">Трансляция №1</a></li> <li><a href="#stream2" data-toggle="tab">Трансляция №2</a></li> </ul> </div> <div class="fotogalery"> <h3 class="top_h3"><?php echo Yii::t('main', 'фоторепортажі'); ?> </h3> <?php
<!--\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ VIDEO BLOCK \\\\\\\\\\\\\\\\\\\\\\\\\\\\ --> <div class="streamBlock"> <h3 class="top_h3">високий вал <span class="btn btn-default">онлайн</span></h3> <ul class="nav nav-tabs"> <li class="active"><a href="#stream1" data-toggle="tab">Трансляция №1</a></li> <li><a href="#stream2" data-toggle="tab">Трансляция №2</a></li> </ul> <div class="tab-content"> <div class="tab-pane fade in active" id="stream1"> <p><?= Yii::app()->language == 'ru' ? Streem::model()->findByPk(1)->name_ru : Streem::model()->findByPk(1)->name_uk; ?></p> <iframe width="100%" height="270px" src="<?= Streem::model()->findByPk(1)->url; ?>" frameborder="0" allowfullscreen></iframe> </div> <div class="tab-pane fade" id="stream2"> <p><?= Yii::app()->language == 'ru' ? Streem::model()->findByPk(2)->name_ru : Streem::model()->findByPk(2)->name_uk; ?></p> <iframe width="100%" height="270px" src="<?= Streem::model()->findByPk(2)->url; ?>" frameborder="0" allowfullscreen></iframe> </div> </div> </div> <div class="videoBlock"> <h3 class="top_h3"><?= Yii::t('main','Останні відеорепортажі'); ?></h3> <div class="content example3"> <div id="tj_container" class="tj_container"> <div class="tj_nav"> <span id="tj_prev" class="tj_prev">Previous</span> <span id="tj_next" class="tj_next">Next</span> </div> <div class="tj_wrapper"> <ul class="tj_gallery"> <?php foreach($lastVideos as $video): ?>