#487: Rails Style Flash Messages
-------------------------+--------------------------------------------------
Reporter: RossC0 | Owner: david
Type: enhancement | Status: new
Priority: normal | Milestone: 1.0
Component: _OTHER_ | Version:
Severity: trivial | Resolution:
Keywords: Flash |
-------------------------+--------------------------------------------------
Comment (by SunboX):
some modification to Flash class:
/**
* Checks for flash messages of type $type
*
* @return bool whether or not there is a flash messages of given type
*
* @author André Fiedler
* @since 1.0
*/
function hasFlashType($type) {
$flash = $this->getParameter('flash');
return @$flash[1] === $type;
}
/**
* Returns the Flash Messages Array
*
* @return array an array of flash messages
*
* @author Ross Lawley
* @since 0.11
*/
function read() {
return $this->removeParameter('flash');
}
--
Ticket URL: <http://trac.agavi.org/ticket/487#comment:4>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets