-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nette/Object with Kdyby/Events #106
Comments
I don't think you need SmartObject. Kdyby/Events identifies the properties by their "on" prefix (I think). You don't need smart object for that. The only thing you'll need is a helper function to invoke all functions in the array because you can no longer use |
@simPod Do you still need help? |
No, I'm good, thanks everyone! I also realised I'd rather use eventmanager to dispatch events. |
@simPod Great. How does it look like in full-code version? If really solved, please close the issue. |
Most of the events I try to dispatch using
|
@simPod Great! :) That's the best way I could think of. |
I somehow noticed nette is getting rid of Nette/Object. So I started to use SmartObject trait with this library instead. But is it good approach? It' weird to me that I use SmartObject just to be able to use this library...
The text was updated successfully, but these errors were encountered: