📌  相关文章
📜  symfony 调用另一个控制器 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:54.933000             🧑  作者: Mango

代码示例1
// OtherController::fancy($name, $color) will be executed
public function myAction($name)
{
    $response = $this->forward(
        'App\Controller\OtherController::fancy',
        array(
              'name'  => $name,
            'color' => 'green',
        )
    );
    // ... further modify the response or return it directly
    return $response;
}