Application with dynamic modules
Notice: This thread is very old.
- FeBus982
- Member | 6
Hi all,
How would you create an application with dynamic modules (each one completely
independent) using nette?
Something like global triggers that can be subscribed by single modules.
Basically it would be easily realized by implementing Observer Pattern but I did not find informations on documentation about similar concepts.
- David Matějka
- Moderator | 6445
Hi, observer pattern is implemented in the Nette\Object class (which you may use as a ancestor of all your classes), see doc
But for dynamic system like that I would recommend more sophisticated event system, try kdyby/events