How to use a Component with Admin Generator?

試著忘記壹切 提交于 2019-12-13 02:26:18

问题


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

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
{

}

But I obtain this error :

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

回答1:


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



来源:https://stackoverflow.com/questions/5857037/how-to-use-a-component-with-admin-generator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!