如何在 Admin Generator 中使用组件? [英] How to use a Component with Admin Generator?

查看:29
本文介绍了如何在 Admin Generator 中使用组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我们可以在管理生成器中使用组件(感谢 ~ 符号).

I know we can use components with the admin generator (thanks to ~ symbol).

但是在components.class.php中,如何调用自动生成的类?

However, in the components.class.php, how to call the auto-generated class ?

此刻,我正在使用这个:

At this moment, I'm using this :

require_once dirname(__FILE__).'/../lib/commissionGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/commissionGeneratorHelper.class.php';


class commissionComponents extends autoCommissionComponents
{

}

但我收到此错误:

Fatal error: Class 'autoCommissionComponents' not found in /home/site/liguelorraine/apps/saSecureLigueLorraine/modules/commission/actions/components.class.php on line 7

推荐答案

没有自动生成的组件类.像往常一样扩展 sfComponents.

There are no automatically generated component classes. Just extends sfComponents as usual.

这篇关于如何在 Admin Generator 中使用组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆