From 1178a63db4f0b921cfdd0773e5f3d16dfc9b59f0 Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 3 Jul 2005 19:09:39 +0000 Subject: [PATCH] Added flash method back to the controller for now Will work on moving this out again at a later time git-svn-id: https://svn.cakephp.org/repo/trunk/cake@305 3807eeeb-6ff5-0310-8944-8be069107fe0 --- libs/controller.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libs/controller.php b/libs/controller.php index 4e5475f66..f31dc5e87 100644 --- a/libs/controller.php +++ b/libs/controller.php @@ -356,7 +356,18 @@ class Controller extends Object { $this->pageTitle = $pageTitle; } + + function flash($message, $url, $time=1) + { + $this->autoRender = false; + $this->autoLayout = false; + $this->set('url', $this->base.$url); + $this->set('message', $message); + $this->set('time', $time); + + $this->render(null,false,VIEWS.'layouts'.DS.'flash.thtml'); + } } ?> \ No newline at end of file