Forum Moderators: coopster
I'm pretty new to the world of PHP and need a little assistance. I've got a static site at the moment, but I'd like to make it a little easier to maintain and update.
One of the areas I think PHP will really help is with the navigation crumb. Rather than typing in all the information such as 'Home > Category > Article' ... what could I use?
I'd like PHP to just insert the Home URL, followed by the category name and URL, follwed by the article title.
Any help would be great. :)
<?php
function createCrumb( $catname, $caturl, $artname, $arturl ) {
echo "<a href=\"/\">Home</a> > ";
echo "<a href=\"$caturl\">";
echo "$catname</a> > ";
echo "<a href=\"$arturl\">";
echo "$artname</a>";
}
createCrumb( "bob", "/bob_category.html", "Fish", "/articles/fish_article.html" );
?>