在zendframework中如果要采用smarty而要关闭view可以在index.php中写上下面的代码 不显示默认视图脚本错误 $frontController->setParam('noViewRenderer', true);