mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
301731fb1a
commit
1178a63db4
1 changed files with 11 additions and 0 deletions
|
@ -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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue