logo

Functions

gen_bcnav(bool href, string splitter);

function gen_bcnav generates a html preset button div with a string of current location sequence, also known as "Breadcrumb Navigation".

bool href expects a boolean value (true/false). If true, every breadcrumb will be an url, if existing.

string splitter expects a value such as "/", etc.; It represents the character that's used to split every single breadcrumb. If empty, using default "|";


This function uses caching! Every change needs the cache to be cleared.


Usage example


	<?php 
	gen_bcnav(true,">");
	gen_bcnav(false,"");
	gen_bcnav(false,"/");
	?>

Showtime!

home > Functions > Gen_bcnav(...)
home | Functions | Gen_bcnav(...)
home / Functions / Gen_bcnav(...)