/** * Finds the Post model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param integer $id * @return Article the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { if (($model = Article::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException(Yii::t('app', 'Page not found')); } }
/** * Finds the Article model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param integer $id * @return Article the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { if (($model = Article::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } }
<div class="row"> <div class="exchangers"> <h3>Обменники</h3> <img src="/images/dollar.gif" /> <a href="https://magneticexchange.com/?p=5301" title="Magnetic Exchange - сервис обмена Perfect Money, Neteller, Payza, Solid Trust Pay, Яндекс Денег, Payweb, RedPass и Paxum"> <img src="http://ad.magneticexchange.com/ru_125_125.gif" alt="Magnetic Exchange - сервис обмена Perfect Money, Neteller, Payza, Solid Trust Pay, Яндекс Денег, Payweb, RedPass и Paxum" /></a> <a href="https://xchange.cc/?R=13966463495285"> <img src="https://xchange.cc/banner/black/125x125.gif"></a> </div> <div class="ipad"> <iframe frameborder="0" src="//www.youtube.com/embed/s2tGLEd5x6M"></iframe> </div> <?php echo $this->renderFile('@app/modules/article/views/article/view.php', ['model' => Article::findOne(['name' => 'important'])]); ?> </div> </section> <section class="pussy"> <div> <p> <a href="http://perfectmoney.is" title="Perfect Money - новое поколение платежных систем Интернета"> <img hspace="5" src="/images/perfectmoney.jpg" /> </a> </p> <p>Программа работает по принципу одной быстро движущейся общей очереди, 1x3 под одного встают три приглашенных и верхний в очереди получает выплату. Приглашения по реферальной ссылке, реферальная программа.</p> <p>Участник, после регистрации выбирает вариант входа один из четырех, может заходить на все четыре.</p>