summaryrefslogtreecommitdiff
path: root/app/php/layouts/Layout.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-04-22 15:59:31 +0200
committeremkael <emkael@tlen.pl>2016-04-22 15:59:31 +0200
commitee96b029b7e5edc4ed6ddbfccf9df44b4c9e45e8 (patch)
tree50a297cee00dc5609421bdc8e40bcd84aa227986 /app/php/layouts/Layout.php
parent244dbdf5cd0e24709eb70fc7dfa3269b44df1388 (diff)
* moving rendered scripts from session to cache and distinguishing among various page views for single session
Diffstat (limited to 'app/php/layouts/Layout.php')
-rw-r--r--app/php/layouts/Layout.php11
1 files changed, 11 insertions, 0 deletions
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 @@
+<?php
+
+class Layout extends TTemplateControl {
+
+ public function generateViewID() {
+ return $this->ViewID->Value ?: md5(mt_rand());
+ }
+
+}
+
+?>