Links Between Modules with Shared Parent Presenters

Notice: This thread is very old.
liko28s
Member | 6
+
0
-

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)

CZechBoY
Member | 3608
+
0
-

2nd example is correct.
What is the problem with it?

premek_k
Member | 172
+
0
-

Maybe typo Sing vs Sign?

liko28s
Member | 6
+
0
-

I have corrected heeding its recommendations and everything works perfectly, the downside was initially the word Sing (must be Sign) and on the other hand in the @layout had multiple occurrences of the word

Thanks a Lot