From 16fe5550183cbc27119ffebe25011822d17210bf Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Mon, 27 Apr 2020 12:24:59 +0300 Subject: [PATCH] add routes anpdf.php --- app/confg.php | 1 + app/index.php | 8 ++- app/{modules/anpdf => routes}/anpdf.php | 6 ++- app/{modules/anpdf => views}/anpdf.phtml | 0 app/views/anpdf2.phtml | 49 +++++++++++++++++++ .../anpdf/anpdf2.phtml => views/layout.phtml} | 49 ++----------------- 6 files changed, 65 insertions(+), 48 deletions(-) rename app/{modules/anpdf => routes}/anpdf.php (93%) rename app/{modules/anpdf => views}/anpdf.phtml (100%) create mode 100644 app/views/anpdf2.phtml rename app/{modules/anpdf/anpdf2.phtml => views/layout.phtml} (68%) diff --git a/app/confg.php b/app/confg.php index f039dd2..3e09afa 100644 --- a/app/confg.php +++ b/app/confg.php @@ -13,6 +13,7 @@ else define('PDFDIR', '/vhosts/anpdf/app/pub/files/pdf/'); define('PGDIR', '/vhosts/anpdf/app/pub/files/pages/'); +define('VIEWPATH', SITEPATH.'views/'); define('API', 'http://api.argumenti.ru/'); db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY'); diff --git a/app/index.php b/app/index.php index d4ba983..bd3a9d9 100644 --- a/app/index.php +++ b/app/index.php @@ -1,13 +1,17 @@ $news] ); diff --git a/app/modules/anpdf/anpdf.phtml b/app/views/anpdf.phtml similarity index 100% rename from app/modules/anpdf/anpdf.phtml rename to app/views/anpdf.phtml diff --git a/app/views/anpdf2.phtml b/app/views/anpdf2.phtml new file mode 100644 index 0000000..b7a1170 --- /dev/null +++ b/app/views/anpdf2.phtml @@ -0,0 +1,49 @@ + + +

+ + + + Получайте «Газету на @email» + +

+ +
Идет обращение к серверу...
+
+
+
🔍
+
+
+ + +
+
+ +
+
+
+ + +
+ + + + + diff --git a/app/modules/anpdf/anpdf2.phtml b/app/views/layout.phtml similarity index 68% rename from app/modules/anpdf/anpdf2.phtml rename to app/views/layout.phtml index 608c959..d0bc77e 100644 --- a/app/modules/anpdf/anpdf2.phtml +++ b/app/views/layout.phtml @@ -8,16 +8,6 @@ - @@ -85,43 +75,12 @@ _tmr.push({id: "1069168", type: "pageView", start: (new Date()).getTime()}); })(this, this.document, "yandexContextAsyncCallbacks"); -

- - - - Получайте «Газету на @email» - -

- -
Идет обращение к серверу...
-
-
-
🔍
-
-
- + -
-
- -
-
-
- - -
+ + - - -