From 6fabfc65c6e6d4cad36d4e1439049918acbb91dc Mon Sep 17 00:00:00 2001 From: Anastasia Date: Fri, 1 Jun 2018 12:52:12 +0300 Subject: [PATCH] - social links - package --- frontend/controllers/PackageController.php | 23 +++++++++++++++++++++++ frontend/views/layouts/main.php | 12 +++++++++--- frontend/views/package/view.php | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 frontend/controllers/PackageController.php create mode 100644 frontend/views/package/view.php diff --git a/frontend/controllers/PackageController.php b/frontend/controllers/PackageController.php new file mode 100644 index 0000000..a1cafa7 --- /dev/null +++ b/frontend/controllers/PackageController.php @@ -0,0 +1,23 @@ +with('language')->where(['id' => $id])->one(); + + return $this->render('view', [ + 'package' => $package + ]); + } + } \ No newline at end of file diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 2799dec..f5f1930 100755 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -342,9 +342,15 @@
diff --git a/frontend/views/package/view.php b/frontend/views/package/view.php new file mode 100644 index 0000000..09be901 --- /dev/null +++ b/frontend/views/package/view.php @@ -0,0 +1,35 @@ +params[ 'entity'] = Package::className(); + $this->params['entity_id'] = $package->id; + $this->params['breadcrumbs'][] = $package->title; + ?> + + +
+
+
+
+
+
+

title?>

+
+
+
+
+ body?> + +
+ Записаться на прием +
+
+
+
+
+
+
-- libgit2 0.21.4