0
對不起,如果這看起來非常簡單。我只是Symfony的新手。模板內的Symfony模板
我只是想有一個模板/視圖其中「包含」其他意見。因此,對於下面的示例,想象一下我的/儀表板/它將同時顯示「統計信息」和「收件箱」。我希望每個代碼都在單獨的動作/方法中。
<?php
class dashboardActions extends sfActions
{
public function executeIndex(sfWebRequest $request) {
// Load statisticsSuccess
// Load inboxSuccess
// Render them both "within" index template
}
public function executeStatistics(sfWebRequest $request) {
// Render statisticsSuccess
}
public function executeInbox(sfWebRequest $request) {
// Render inboxSuccess
}
}
感謝您可以提供任何幫助!
感謝隊友,正是我所期待的。一旦它讓我接受你的答案。 – captainclam