예제 #1
0
파일: alias.php 프로젝트: shayanderson/eco
/**
 * Session flash helper
 *
 * @param string $key
 * @param mixed $value
 * @return \Eco\Factory\Session\Flash
 */
function flash($key = null, $value = null)
{
    if (func_num_args() === 1) {
        System::flash()->get($key);
    } else {
        if (func_num_args() === 2) {
            System::flash()->set($key, $value);
        }
    }
    return System::flash();
}
예제 #2
0
파일: flash.php 프로젝트: shayanderson/eco
/**
 * Flash error getter
 *
 * @return string
 */
function flash_error_get()
{
    return System::flash()->get('error');
}