sparkjava模板是否自动包含请求

时间:2016-07-28 18:22:11

标签: java java-ee spark-java

我有一个动词可以做到这一点

function reorder_flow($flow, $uid)
{   
    foreach($flow as &$step)
    {   
        //step is the array with tasks
        $tasks = $step['tasks'];
        $new_tasks = array();

        foreach($tasks as $key => $t)
        {
            if($t['uid'] == $uid)
            {
                $new_tasks = $new_tasks + $t;
                unset($tasks[$key]);
            }
        }
        $step['tasks'] = $new_tasks + $step['tasks'];
    }
    return $flow;
}

我会自动使用request.a在模板中返回“消息”吗? 或者我必须将请求复制到地图中。

0 个答案:

没有答案