News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Highlighting What Section of a Website the User Is In
September 13, 2006 @ 15:02:22

PHPBuilder.com has a quick little article (an exceprt from "PHP 5 in Practice") that shows how, using a simple dynamic navigation system, highlight where the user currently is.

Although a site may not always warrant a full multilayer navigation menu, most websites usually have at least a few different sections. Often many pages have links back to the top pages of each section, and therefore it is useful to highlight which section the user is currently in. Listing 9.2.1 looks at the URL of the current web page and, based on that, determines what section of the website it is in and changes the section menu.

They provide the script and a brief explaination, but not much else. Seems like the snippet might make more sense with a little more context, but it's still useful.

0 comments voice your opinion now!
highlight section website user dynamic navigation highlight section website user dynamic navigation


blog comments powered by Disqus

Similar Posts

Bjarte Karlsen's Blog: Sorting with uasort

David Coallier's Blog: PEAR is using jQuery et new features

Joshua Eichorn's Blog: Jquery at AZPhp Tomorrow (11/28/2006)

Joshua Eichorn\'s Blog: HTML_AJAX 0.3.0 Released and new Website

Zak Greant's Blog: OSCON Highlight: Rasmus' "How to Make Money with PHP" session


Community Events

Don't see your event here?
Let us know!


introduction language application community composer example laravel api project interview podcast part2 php7 framework voicesoftheelephpant yii2 series opinion symfony list

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework