Fecmall V1.12.1
Fecyo V.1.9.11
fecyo\models\mysqldb\customer\CustomerRegister extends fecshop\models\mysqldb\Customer
fecyo\models\mysqldb\Customer extends \fecshop\models\mysqldb\Customer
common\local\local_models\mysqldb\Customer extends \fecyo\models\mysqldb\Customer
common\local\local_models\mysqldb\customer\CustomerRegister extends \fecyo\models\mysqldb\customer\CustomerRegister
在使用过程中发现有类似的继承, 通常情况下,在common里边的类会是整个网站的公共类,如果我在
common\local\local_models\mysqldb\Customer 这个类里写上一些公共方法,比如getFullName(), beforeSave()等,
那么这个时候 common\local\local_models\mysqldb\customer\CustomerRegister 它就无法使用上述的公共方法,尽管最终类是 \fecshop\models\mysqldb\Customer,
是否可以进行一些约定,在插件中总是应该扩展COMMON目录下面的类,这样当我们需要二次开发时就会相对方便一些。
不知道我有没有表达清楚。