PHP code example of jirinapravnik / navigation

1. Go to this page and download the library: Download jirinapravnik/navigation library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jirinapravnik / navigation example snippets


$nav->navAdd('Úvod', $this->link('Homepage:'), 'Jít na úvodní stránku');

$nav->navAdd('Úvod', 'Homepage:', 'Jít na úvodní stránku');

	protected function createComponentNavigation($name) {
		$nav = new Navigation($this, $name);
		$nav->setupHomepage('Úvod', $this->link('Homepage:'), 'Jít na úvodní stránku');
		$sec = $nav->add('Sekce', $this->link('Category:', array('id' => 1)));
		$article = $sec->add('Článek', $this->link('Article:', array('id' => 1)));
		$nav->setCurrentNode($article);
	}