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
This commit is contained in:
phpnut 2005-07-03 19:09:39 +00:00
parent 301731fb1a
commit 1178a63db4

View file

@ -356,7 +356,18 @@ class Controller extends Object
{ {
$this->pageTitle = $pageTitle; $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');
}
} }
?> ?>