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