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