-
Notifications
You must be signed in to change notification settings - Fork 8
janmarek/Navigation
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Navigation
==========
Control pro Nette Framework usnadňující tvorbu menu a drobečkové navigace
Autor: Jan Marek
Licence: MIT
Použití
-------
Továrnička v presenteru:
protected function createComponentNavigation($name) {
$nav = new Navigation($this, $name);
$nav->setupHomepage("Úvod", $this->link("Homepage:"));
$sec = $nav->add("Sekce", $this->link("Category:", array("id" => 1)));
$article = $sec->add("Článek", $this->link("Article:", array("id" => 1)));
$nav->setCurrentNode($article);
// or $article->setCurrent(TRUE);
}
Menu v šabloně:
{widget navigation}
Drobečková navigace v šabloně:
{widget navigation:breadcrumbs}About
Control pro Nette Framework usnadňující tvorbu menu a drobečkové navigace
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published