refactoring.

This commit is contained in:
Taylor Otwell
2011-11-01 19:41:35 -05:00
parent c3c0fbce96
commit 83d927c4f1
11 changed files with 52 additions and 40 deletions

View File

@@ -74,6 +74,16 @@ class Input {
return ( ! is_null(static::old($key)) and trim((string) static::old($key)) !== '');
}
/**
* Flash the input for the current request to the session.
*
* @return void
*/
public static function flash()
{
IoC::container()->core('session')->flash(Input::old_input, static::get());
}
/**
* Get input data from the previous request.
*