From da205d6e93e3deaaca5e1f6975c199bbfc416996 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Wed, 8 Oct 2014 00:29:55 +0400 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=85=D0=BE=D0=B6=D0=B8=D1=85=20=D1=82=D0=BE=D1=87=D0=B5=D0=BA?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86?= =?UTF-8?q?=D0=B5=20=D1=82=D0=BE=D1=87=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ground/controllers/PageController.php | 3 ++- ground/views/point.php | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ground/controllers/PageController.php b/ground/controllers/PageController.php index e045028..e3afa6b 100644 --- a/ground/controllers/PageController.php +++ b/ground/controllers/PageController.php @@ -69,11 +69,12 @@ class PageController extends Controller $point->categoryName = $categories[$point->categoryId]['name']; $randomPoint = Point::model()->getRandom(); -// print_r($randomPoint->name); + $similarPoints = Point::model()->getAll(array('where' => 'categoryId = '.$point->categoryId.' AND `id` <> '.$point->id.' ORDER BY RAND() LIMIT 6;')); self::render('point.php', array( 'point' => $point, 'randomPoint' => $randomPoint, + 'similarPoints' => $similarPoints, 'categories' => $categories, 'photos' => $point->photos, )); diff --git a/ground/views/point.php b/ground/views/point.php index 386f8b9..901bd27 100644 --- a/ground/views/point.php +++ b/ground/views/point.php @@ -9,7 +9,7 @@

name ?>

-

+

description, 0, 120, 'UTF-8') ?>... далее » @@ -103,8 +103,8 @@


Похожие:

-

-

-

+ + +