方法:
1.在控制器中写
<?php
$viewModel = new ViewModel();
$children = $viewModel()->getCurrent()->getChildren(); //?待测
$child = $children[0];
?>
2.在layout.phtml中使用
<!-- 视图 -->
<?php echo $this->escape($child->anyvar);?>
3. 在控制器设置meta keywords,keywords必需存在于视图view而不是layout中
$this->view->keywords = 'aaa kewords';