BasePresenter for particular presenters only

9 months ago

radm
Member | 7
+
0
-

Hello, I design menu for admin webpages using BasePresenter. I know how to use
BasePresenter but is it possible to make BasePresenter only for particular Presenters, like
FirstAdminPresenter.php, SecondAdminPresenter.php using common BaseAdminPresenter.php.
Thanks for advice.

9 months ago

Milo
Nette Core | 1151
+
0
-

Sure. For example I have a base presenter for every module.

BasePresenter
AdminBasePresenter extends BasePresenter
FrontBasePresenter extends BasePresenter

9 months ago

radm
Member | 7
+
0
-

Milo wrote:

Sure. For example I have a base presenter for every module.

BasePresenter
AdminBasePresenter extends BasePresenter
FrontBasePresenter extends BasePresenter

I see, thanks for hint :).