覆盖 Cakephp 核心中的单个方法 Class?
Override a single method in a Cakephp Core Class?
我需要覆盖 cakephp 的 cakeEmail class 的发送方法。我正在工作
我可以使用蛋糕食谱方法覆盖整个class:"To override the Dispatcher class, create app/Lib/Routing/Dispatcher.php"
如何覆盖单个方法?这是解决这个问题的最可维护的方法吗?谢谢。
Cakephp 2.8.4
How do I overwrite a single method instead? Is this the most maintainable way to approach this? Thank you.
标准 OOP:
扩展class,重载你想要的方法,使用那个class。
我需要覆盖 cakephp 的 cakeEmail class 的发送方法。我正在工作
我可以使用蛋糕食谱方法覆盖整个class:"To override the Dispatcher class, create app/Lib/Routing/Dispatcher.php"
如何覆盖单个方法?这是解决这个问题的最可维护的方法吗?谢谢。
Cakephp 2.8.4
How do I overwrite a single method instead? Is this the most maintainable way to approach this? Thank you.
标准 OOP:
扩展class,重载你想要的方法,使用那个class。