Login
Roast topics
Find topics
Find it!
From:
Blog – Jiří Pudil
(Uncensored)
subscribe
Decoupling components from presenters
https://jiripudil.cz/blog/decoupling-components-from-presenters
links
backlinks
Roast topics
Find topics
Roast it!
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.