From ee96b029b7e5edc4ed6ddbfccf9df44b4c9e45e8 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 22 Apr 2016 15:59:31 +0200 Subject: * moving rendered scripts from session to cache and distinguishing among various page views for single session --- app/php/layouts/Layout.php | 11 +++++++++++ app/php/layouts/MainLayout.php | 4 +++- app/php/layouts/MainLayout.tpl | 3 +++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 app/php/layouts/Layout.php (limited to 'app/php/layouts') diff --git a/app/php/layouts/Layout.php b/app/php/layouts/Layout.php new file mode 100644 index 0000000..324c69f --- /dev/null +++ b/app/php/layouts/Layout.php @@ -0,0 +1,11 @@ +ViewID->Value ?: md5(mt_rand()); + } + +} + +?> diff --git a/app/php/layouts/MainLayout.php b/app/php/layouts/MainLayout.php index c0e7e0b..5843952 100644 --- a/app/php/layouts/MainLayout.php +++ b/app/php/layouts/MainLayout.php @@ -1,6 +1,8 @@ + + <%= $this->generateViewID() %> + -- cgit v1.2.3