The ZF2 is heavily under development and no guarantee can be made the way it works now, will be the way it works when ZF2 reaches a stable state.
However, the new view layer from ZendMvc is recently merged so you should be able to do this now (with current master):
public function somethingAction ()
{
// Do some intelligent work
$this->layout('layout/different');
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…