Download the PHP package radekrepka/module-router without Composer
On this page you can find all versions of the php package radekrepka/module-router. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download radekrepka/module-router
More information about radekrepka/module-router
Files in radekrepka/module-router
Download radekrepka/module-router
More information about radekrepka/module-router
Files in radekrepka/module-router
Vendor radekrepka
Package module-router
Short Description Library for routing modules
License MIT
Package module-router
Short Description Library for routing modules
License MIT
Keywords module-router
Please rate this library. Is it a good library?
Informations about the package module-router
Module router
- Description
- Installation
- Usage
Description
Simple tool which generates menu, links and titles of pages.
Installation
Usage
Configuration is in neon files.
Then you can add your modules and pages in menu. You can set icon of item in menu. It can be anything (url to image file, fa icon...).
config.neon
Translation file (modules.cs_CZ.neon)
You must create translation file called modules.
RouterFactory:
BasePresenter:
Template (@layout.latte for example)
<ul>
{foreach $modules as $module}
{var $active = $presenter->getName() == $module->getFullModule()}
<li{if $active} class="active"{/if}>
<a n:href="$module->getModule() . ':'">
<img n:if="$module->getIcon()" src="{$basePath}/img/{$module->getIcon()}">
<span>{$module->getName()}</span>
</a>
</li>
{/foreach}
</ul>
...
<h1>{$currentModule->getName()}</h1>
All versions of module-router with dependencies
PHP Build Version
Package Version
The package radekrepka/module-router contains the following files
Loading the files please wait ....