Plugins 如何在symfony中启动executeMething(sfWebRequest$request)?

Plugins 如何在symfony中启动executeMething(sfWebRequest$request)?,plugins,symfony1,doctrine,symfony-1.4,Plugins,Symfony1,Doctrine,Symfony 1.4,我是Symfony 1.4的新手 我有一个插件,在modules文件夹中有paymentmodule,为此,我有lib文件夹和templates文件夹。在lib中,我有BasePaymentComponents.class.php类,在这个类中,我用前缀executeSometing调用了一些函数: public function executeSometing(sfWebRequest $request) 对于每个执行,我在templates文件夹中都有一个特定的模板。文件结构如下:\u s

我是Symfony 1.4的新手

我有一个插件,在modules文件夹中有
payment
module,为此,我有lib文件夹和templates文件夹。在lib中,我有
BasePaymentComponents.class.php
类,在这个类中,我用前缀
executeSometing
调用了一些函数:

public function executeSometing(sfWebRequest $request)
对于每个执行,我在templates文件夹中都有一个特定的模板。文件结构如下:
\u something 1.php
\u something 2.php

我的问题是,
BasePaymentComponents.class.php
中的
executeSometing
函数实际上是在什么时刻执行的

我创建了另一个模板,名为
\u something3.php
,并为他设置了函数:

public function executeSometing3(sfWebRequest $request)

实际上并没有启动该功能。为什么?

您正在使用组件-将组件添加到模板中-因此要在BasePayment组件中执行Something方法,您需要将以下内容添加到模板中:

<?php include_component('BasePayment', 'something') ?>


检查此处的文档->您正在使用组件-您将组件添加到模板-因此,要在BasePayment组件中执行Something方法,您需要将以下内容添加到模板中:

<?php include_component('BasePayment', 'something') ?>

检查此处的文档->