summaryrefslogtreecommitdiff
path: root/app/frontend/layouts/Layout.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend/layouts/Layout.php')
-rw-r--r--app/frontend/layouts/Layout.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/frontend/layouts/Layout.php b/app/frontend/layouts/Layout.php
new file mode 100644
index 0000000..324c69f
--- /dev/null
+++ b/app/frontend/layouts/Layout.php
@@ -0,0 +1,11 @@
+<?php
+
+class Layout extends TTemplateControl {
+
+ public function generateViewID() {
+ return $this->ViewID->Value ?: md5(mt_rand());
+ }
+
+}
+
+?>