表示するテンプレートを指定

アクション内で、setTemplate()を使います

public function executeIndex()
{
    $this->setTemplate('select');


modules
└モジュール名
 └templates - indexSuccess.php ←コチラではなく
  - selectSuccess.php ←コチラを表示


また、templates直下にフォルダを作成して、そちらを指定する事もできます。

public function executeIndex()
{
    $this->setTemplate('folder/index');
}


modules
└モジュール名
 └templates - indexSuccess.php ←コチラではなく
  └folder - indexSuccess.php ←コチラを表示


戻り値をつければ、Successの部分も変更できます。

public function executeIndex()
{
    $this->setTemplate('folder/index');
    return sfView::ERROR;
}

または

public function executeIndex()
{
    $this->setTemplate('folder/');
    return indexError;
}


modules
└モジュール名
 └templates
  └folder - indexSuccess.php ←デフォルトはxxxSuccess.php
  - indexError.php ←指定した場合はコチラ
[symfony 1.0.9]