PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Tofeeq ur Rehman   Bread crumbs   index.php   Download  
File: index.php
Role: Application script
Content type: text/plain
Description: example
Class: Bread crumbs
Generate breadcrumb links from page URI
Author: By
Last change: more ease to integrate
Date: 16 years ago
Size: 755 bytes
 

Contents

Class file image Download
<?php
   
/*
        @note:
            change the RewriteBase in your htaccess file to your site base url
        @example:
            type url in address bar as http://www.site.com/category/subcategory/subsubcategory/product
            or
            http://www.site.com/category/subcategory/subsubcategory/product.html
    */
   
$config = array();
   
   
$config['db_host'] = "localhost";
   
   
$config['db_name'] = "mvc";
   
$config['db_user'] = "root";
   
$config['db_pass'] = "cyba";
   
$config['site_name'] = "breadcrumbs";

   
$config['http_host'] = "http://".$_SERVER['HTTP_HOST']."/".$config['site_name']."/";

    include_once(
"breadCrumbs.php");
   
$bc = new breadCrumbs($config['http_host'],$config['site_name'],"lnkfeatured");
   
$bread_crumbs = $bc->getBreadCrumbs();
    echo
$bread_crumbs;
?>