Link to component signal with parameters for presenter
- jeremy
- Member | 54
Hi, is it possible to create a link to a component signal with parameters that are meant for presenter?
For example:
{link component:signal!, p1: first, p2: second} creates this: /?do=component-signal&compontent-p1=first&component-p2=second
But I'd like something like this: /?do=component-signal&p1=first&p2=second
Thanks!
- Marek Bartoš
- Nette Blogger | 1261
No. You have to create link via presenter. You can pass it to your component
via anonymous callback or just call the method from component directly in
presenter.
Component should ideally never be aware of in which specific presenter it
is used.