News Feed
Jobs Feed
Sections




News Archive
feed this:

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

Adam Culp:
Zend Framework 2 XML Sitemap
September 09, 2013 @ 11:15:09

In a new post to his site Adam Culp shares how he created an XML sitemap for his Zend Framework 2-based application as he made it (the SunshinePHP site) more SEO friendly.

I was pleasantly surprised to see the Navigation component of Zend Framework 2 includes a bunch of view helpers, including a Sitemap helper. So now I have an xml sitemap created by Zend Framework 2 that works hand in hand with the site navigation. However, the documentation was not complete as of this writing and caused me to do a bit of trial and error debugging to get it working. Below I will post how I got it working, in hopes it will help others.

The code to get it working is relatively simple - set it up in the module configuration, specify the navigation structure and add a route for the sitemap output. The view then accesses the navigation handling and calls a "sitemap" method to push the XML result out to the user.

0 comments voice your opinion now!
xml sitemap sunshinephp zendframework2 navigation helper

Link: http://www.geekyboy.com/archives/770

Rob Allen:
Integrating BjyAuthorize with ZendNavigation
November 20, 2012 @ 13:57:09

Rob Allen has posted a technique for integrating the BjyAuthorize, a helpful module for access control in your Zend Framework 2 application, with the ZendNavigation module for user permissions-based navigation updates.

If you are using BjyAuthorize for ACL configuration and want to use ZendNavigation's ZendAcl integration features, then you need to set the Acl and Role information into ZendNavigation.

He includes the code you'll need to add to both the bootstrap of your application and the configuration to set up the "rule_providers" and "resource_providers". Then you can update your navigation settings to include "resource" and "rule" options to define with options a user can see.

0 comments voice your opinion now!
zendframework2 tutorial bjyauthorize acl navigation module


Adam Lundrigan:
Quick-and-dirty ZF2 ZendNavigation
July 26, 2012 @ 12:19:27

On Adam Lundrigan's site there's a new post introducing you to the ZendNavigation component of the Zend Framework v2 project and a simple example using it to display a few links.

He breaks it up into a few smaller steps:

  • Add Service Manager Factory
  • Configure Sitemap
  • Using the View Helpers

You can find out more about the ZendNavigation component here.

0 comments voice your opinion now!
zendframework2 navigation tutorial introduction


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



Community Events











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


opinion package application framework hhvm composer podcast component symfony2 unittest install overview code introduction security release example language facebook hack

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