How to get presenter action in model

11 days ago

Jan Blažek
Member | 4
+
0
-

Hello,
I need call some presenter´s function, but i need to call it in model.
Can you help me how to get reference to presenter please? i need to call $presenter->flashMessange() in model

11 days ago

Pavel Kravčík
Member | 714
+
+2
-

I guess you raping MVC… Better call model in presenter and by return value show flashMessage.

11 days ago

CZechBoY
Member | 2273
+
0
-

Make flashMessage in presenter. If it is variable (eg. something failed) you should throw exception in model method.

Board footer

Terms and conditions