在模板上显示Symfony任务的输出 [英] Display output from a Symfony task on a template

查看:45
本文介绍了在模板上显示Symfony任务的输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从 Symfony 中的操作执行任务.我希望捕获任务&的输出.将其显示给(管理员)用户.我要从调度程序/日志或其他地方提取它吗?

I am executing a task from an action in Symfony. I wish to capture the output from the task & display it to the (admin) user. Do I extract it from the dispatcher / log or somewhere else?

推荐答案

为什么不只是在动作中执行任务-并在模板中格式化输出?为什么要运行与Action分开的任务?(我知道这个线程很旧)

Why not just perform the task within the action - and format the output in the template ? why are you running a separate task from an Action ? (i know this thread is old)

这篇关于在模板上显示Symfony任务的输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆