From my last topic Which is the best entrance for a prizing discourse? When reply to a topic, will win a prize by chance, to attract more people to take part in
I learned I may need to use event-way to solve my problem.
Then I create a CommentEvents with in namespace Application\Event and place the file in Application/src/Event folder.
As well, I create a CommentListener.php also in Application/src/Event folder.
Then I registered the listener to serviceManager via the following configuration.
Finally I test it in the action(I supposed it can trigger anywhere even in the comment saving logic)
What I got is nothing!! I thought it will print the params 333,666, and type shit!!!888
I have removed the data/cache/module-config-cache.application.config.cache.php file before I test.
I have been working on it for several days, and don’t know how to move.
Anybody can help?