dev-master
9999999-dev https://github.com/mKomorowski/php-breadcrumbsPHP breadcrumbs rendering class
MIT
The Requires
- php >=5.3
The Development Requires
by Michal Komorowski
php bootstrap html breadcrumbs render
Wallogit.com
2017 © Pedro Peláez
PHP breadcrumbs rendering class
PHP breadcrumbs rendering class, (*1)
The package can be installed via Composer by adding to the composer.json require block., (*2)
{
"require": {
"mkomorowski/php-breadcrumbs": "dev-master"
}
}
Then update application packages by running the command:, (*3)
php composer.phar install
$breadCrumbsRender = new mKomorowski\Breadcrumbs\Render;
Rendering breadcrumbs can be achieved by passing custom URI path., (*4)
echo $breadCrumbsRender->build('/library/data')
By default Render class will always prepend breadcrumbs with 'Home' crumb linking to '/' root path. To disable 'Home' crumb:, (*5)
$breadCrumbsRender->disableHomeCrumb()
Edit 'Home' crumb by:, (*6)
$breadcrumbsRender->setHomeCrumb("<a href='/'>Main</a>");
Passsing php null will render php $_SERVER['REQUEST_URI'] parameter, (*7)
echo $breadCrumbsRender->build()
PHP breadcrumbs rendering class
MIT
php bootstrap html breadcrumbs render