【问题标题】:Symfony: how to set a template from another module?Symfony:如何从另一个模块设置模板?
【发布时间】:2010-04-17 13:28:30
【问题描述】:

任何时候我写这个:

$this->setTemplate('module/action');

我收到此错误:

模板 “模块/actionSuccess.php”没有 在“”中存在或不可读。

那么..如何从另一个模块设置模板?

贾维

【问题讨论】:

    标签: symfony1


    【解决方案1】:

    根据API Documentation

    $this->setTemplate('action', 'module');
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-18
      • 2016-08-28
      • 1970-01-01
      • 2011-04-01
      • 2016-09-30
      相关资源
      最近更新 更多