Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Login
From:
Blog – Jiří Pudil
(Uncensored)
subscribe
Decoupling components from presenters
https://jiripudil.cz/blog/decoupling-components-from-presenters
links
backlinks
In order for components in Nette to be as reusable as possible, it is necessary to decouple them from presenters. The cleanest way out of this is to invert the dependency. After all, it's the presenter that requires the component, not vice versa.