Links Between Modules with Shared Parent Presenters
Notice: This thread is very old.
- liko28s
- Member | 6
Hey guys, I'm trying to make a place where each module shares some actions with the top.
Currently my structure looks like
`
app/
config/
...
router/
...
presenters/
templates/
@layout.latte
Homepage/
default.latte
Sign/
in.latte
HomepagePresenter.php
SignPresenter.php
OneModule/
presenters/
templates/
Onehome/
default.latte
OnehomePresenter.php
TwoModule/
presenters/
templates/
Twohome/
default.latte
TwohomePresenter.php
bootstrap.php
Now, at this moment One & Two Modules share the @layout and auth methods in SingPresenter
I like to call the Sing:out from both modules, im trying with:
<a n:href=“::Sign:out”>Logout</a>
<a n:href=“:Sign:out”>Logout</a>
<a n:href=“Default:Sign:out”>Logout</a>
but no luck.
Is it necessary that the file SigninPresenter stored in another submodule? For example AdminModule, and in this case, how to load the default presenter?
Thanks.
Last edited by liko28s (2016-04-09 00:32)