L
L
laviro2014-10-10 22:13:22
Yii
laviro, 2014-10-10 22:13:22

How to override a method from a module model in yii?

For example, there is a comment module connected to the project https://github.com/segoddnja/Comments-module
Let's say I need to change the method in the module model.
I can edit the file directly in the module, but I wanted the module files to remain unchanged.
Therefore, the question is how to override the method correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-10-10
Protko @Fesor

In Yii, all problems are solved by inheritance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question