我創建了是給一個完整的HTML擷取來自查看HTML中的Symfony2
public function newAction(Request $request)
{
return $this->render('AcmeTaskBundle:Default:index.html.twig');
}
這是一個動態的形式建設者,當我在文本字段按鈕,然後雙擊生成的文本字段的行動指標並相應地改變html。現在我想要得到這個新的HTML在另一個行動
public function subAction(Request $request)
{
$this->container->get('templating')
->renderResponse('AcmeTaskBundle:Default:index.html.twig');
}
當我使用這個東西,那麼僅渲染上了年紀的HTML,但我需要新生成的html。我該如何渲染?
不能理解你的問題,你需要更具體的 – drupality 2012-07-28 15:43:17
請添加更多的例子與邏輯實現,控制器,表格渲染等 – 2012-07-28 18:41:02
相關問題http://stackoverflow.com/questions/11701396/generate-dynamic -html-in-symfony2 – umpirsky 2012-07-28 21:37:14