News Feed
Jobs Feed
Sections



Recent Jobs

News Archive
feed this:

Brandon Savage's Blog:
An Intro To Zend_Navigation
March 30, 2010 @ 13:33:08

As he progresses more in his work with the Zend Framework (and learns along the way) Brandon Savage is sharing some of the handy new things he's come across. In his latest post he looks at the Zend_Navigation component and gives you an overview of how it all works.

I wanted to write a primer that others could use to get started with Zend_Navigation. This is a short guide to how Zend_Navigation works, and how you can use it to improve your application.

His primer starts with a bit of vocabulary you'll need to know before you get started - things like MVC pages, URI pages and containers. He helps you create Zend_Navigation-enabled pages, both a simple one that just makes an object and a more complex one that uses a tree structure (as defined in an array) to help build the navigation element.

0 comments voice your opinion now!
zendnavigation navigation configuration tutorial



Tiger Heron Blog:
First steps with PHP - booting a script, Part 1
March 19, 2008 @ 08:48:48

On the Tiger Heron blog, there's a continuation of the series that Tony Freixas has been writing to following the beginning steps of working with PHP. First there was the download/install, then setting up a development environment. This time, he actually gets around to writing a bit of basic code.

Specifically, I will describe how I boot my PHP scripts and why I boot them the way I do. Part 1 shows how my requirements for code portability and maintainability influence the boot process. Part 2 will go into more detail about the specific steps executed by the boot code.

His basic task for the first example is to make a templating sort of system, calling a Navigation class to output links in list items. He outlines the goals of the project, what he's found for his current solution and some alternatives he's discovered along the way.

0 comments voice your opinion now!
development tutorial series environment task navigation


Tiffany Brown's Blog:
Turn text files into pull down menus
February 27, 2008 @ 09:35:00

Tiffany Brown shares a quick function she whipped up to create dropdown menus from the contents of a newline separated text file (or files).

I developed this PHP function for a project I'm working on. I'm posting it here in case I need it again, or in case you find it handy.

The function turns each line into an option tag making defining custom menus based on the contents of dynamically-given text files easy.

This could also be easily adapted to create navigations menus at the top of your pages with a few modifications to the HTML tags being used and some CSS to change the look of the list.

0 comments voice your opinion now!
text file dropdown menu form element navigation css


The Bakery:
Five New Articles, Tutorials and Helpers
September 11, 2007 @ 09:29:00

The Bakery has five new items they've recently posted - a few new articles, helper information and tutorials. Here's the list:

  • CSV Helper - I was recently outputting some comma-delimited data and thought I would benefit from a simple csv helper
  • p28n, the top to bottom persistent internationalization tutorial - For some developers, allowing a website to support multiple languages is essential. Luckily cakePHP 1.2 has the foundations available to make this possible.
  • Tracking navigation history of a user - Many times it can be very useful to track the navigation history of a user. [...] With this HistoryComponent, it's extremely easy to handle such actions.
  • Habtm hacks to menage columns in both models - I had a habtm relationship between two models and when i did a "findall" in a model i couldn't filter the rows with a clause from the the other model.
  • SecureGet Component - I am not pretending this can replace ACL or more complex implementation, it's just a small component, inspired a bit from the Security component.

If you're a CakePHP developer, you'd do well to check out The Bakery for these and more great Cake-related articles, tutorials and information.

1 comment voice your opinion now!
csv internationalization navigation habtm secureget bakery csv internationalization navigation habtm secureget bakery


Felix Geisendorfer's Blog:
MacGyver menu for CakePHP - What's the active menu item?
July 09, 2007 @ 09:34:00

In a new post to his blog today, Felix Geisendorfer talks about view coding - specifically working with a menu and determining which element is active.

One of the challenges many of us have faced before and will face in future is building a menu. Now this of course is very simple assuming that we're just shooting for a static <ul> with some <li>'s containing the links. However the tricky part is to figure out what is the active menu item. I had some code doing this in the past but tried out a new flavor of it today which I call the MacGyver menu for CakePHP as it's a little dirty yet powerful and easy to maintain.

In his included code, he creates a simple navigation from an array of titles/links and, with some sorting, a regular expression and a CSS class, the selected item can be highlighted simply.

0 comments voice your opinion now!
cakephp framework navigation highlight active menu cakephp framework navigation highlight active menu


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


Justin Silverton's Blog:
5 reasons why oscommerce is a nightmare
September 06, 2006 @ 06:44:07

On the High Performance PHP blog today, Justin Silverton has posted a few thoughts on why he thinks "oscommerce is a nightmare".

He quotes from the oscommerce.com site about what their goal for the software is and the methods they're working at to achieve those goals. Then comes his reasons for not wanting to use their software - five of them on differing subjects:

  • no separation of logic and presentation
  • difficult to integrate into an existing design
  • security
  • cannot have multiple sizes of image previews
  • admin navigation issues
He offers a bit of explaination for each of these, backing up his opinion with a few facts.

0 comments voice your opinion now!
oscommerce nightmare logic presentation integration security navigation oscommerce nightmare logic presentation integration security navigation


O'Reilly:
Design Tips for Building Tag Clouds
June 09, 2006 @ 06:07:07

On the O'Reilly OnLAMP.com site today, there's a new article with a few tips on making the tag clouds on your site successful from Jim Bumgardner, the author of Building Tag Clouds in Perl and PHP.

Tag clouds can be used effectively, and provide real value to a web site, or they can be tacked on as an afterthought, simply because they look cool, or to make the site appear similar to other, better web sites that offer them. Ultimately, you need to keep in mind their dual function, both as a graph of current activity, and as a navigation aid. Here are some design and implementation tips.

His list includes:

  • Choose the right language
  • Frequency sorting
  • Avoid Random Mappings
  • Try Different Maps

Each item has a brief explaination of what its about, and some include examples of what to do/what not to do.

0 comments voice your opinion now!
design six tips tag clouds navigation current activity design six tips tag clouds navigation current activity


Craig Freshwater's Blog:
Using PHP for Website Navigation, Explained
April 17, 2006 @ 07:19:20

Craig Freshwater, explains how in this new blog entry, PHP can be used to template your site with a few quick and easy steps.

PHP can be very useful in your website design, I use PHP for my websites difficult functions such as forums, blogs, chat, user forms, and shopping cart interface. But did you know you can use simple PHP for your website navigation systems?

The use of PHP for your websites header, left side navigation, and bottom of page information can be a great asset. Now I know what you are thinking, PHP can be complicated and intimidating to many of you, but first let me explain.

He tells it more from an "outsider's perspective", for someone not really familiar with PHP. There's a lot of introductory explaination and installation instructions on getting PHP working, but he does eventually get to the (very) simple templating example.

1 comment voice your opinion now!
website navigation tutorial website navigation tutorial


PHPMac.com:
Two New Tutorials (Switch Navigation & A Simple Login)
December 28, 2005 @ 06:30:58

PHPMac.com has two more new PHP tutorails today - Navigation using Switch and Single-Page Password Protection.

In the navigation tutorial, they show you a simpel way to use the switch() control to display different content based on a variable set in the $_GET array (URL string).

The second tutorial, Single-Page Password Protection, shows you quickly how to create a form that takes in a password and checks it against one hard-coded into the PHP script. If it validates, the "secret content" is shown.

Both of these tutorials are very simple, and, if you're not careful with them, could cause some security issues with your scripts. All in all, though, they're a good starting place...

1 comment voice your opinion now!
tutorial switch navigation simple login tutorial switch navigation simple login



Community Events





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


application framework release api podcast interview introduction series development unittest custom manifesto conference test phpunit symfony2 package language community opinion

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