Archive for the ‘Programming (app)’ Category

I’ll introduce this topic with a warning – This article doesn’t show you how to completely reorder your entire Navigation, it does however show you how you could populate a new container from an existing one and reorder it. Zend Navigation currently doesn’t allow you to nominate a default Navigation Container class. So while we [...]

Part 3: Implementing jsTree which uses jQuery (optional javascript expand/collapse) This is a completely optional step in this series and really has nothing to do with Zend Framework because by this based on the client side we have all the HTML we need. What we’ll be doing is setting up jsTree a jQuery tree component [...]

Part 2: Rendering the sub menus (relevant to the active tab). This is where we employ another trick because the Zend_Navigation menu view helper does provide an option to render the active menu, but it is meant literally not the active branch of the menu like we’re trying to achieve. In the layout we need [...]

It is some what tricky with the Zend_Navigation menu helpers to set up your typical tab-based navigation with sub pages relevant to the tab your on, as seen below. But it’s not far difficult so don’t be put off, hopefully the view helpers will improve over time. In the mean time this is a 3 [...]

The most logical place to render your breadcrumb from is your master layout… However it’s unlikely you’ll ever want to render to on your home page right? I mean what is the point of seeing just “Home”. This can be simply achieved using a partial template to render your breadcrumb. The code below should explain [...]

phpDocumentor (phpDoc) templates

Posted: 11th December 2008 by Grant Perry in PHP

Most professional PHP developers should be familiar with phpDocumentor, an “auto-documentation tool for the php language”. If you’re not please go check it out and start using it immediately! It has some great features, but that’s not in the scope of this post… Unfortunately most of the phpDocumentor templates leave much to be desired! However [...]

Wheres the Model in Zend Frameworks MVC?

Posted: 5th December 2008 by Grant Perry in Zend Framework
Tags: , , , ,

Don’t get me wrong ZF is my PHP framework of choice however it’s really lacking the Model concept from the MVC design pattern! The Model is where you should be implementing your business logic, data validation for example… Zend Framework implements interfaces for filtering and validation on it’s Form components. The framework however lacks these interfaces on other [...]

Like I assume millions of other people, I’ve been unable to make a payment with PayPal for over 8 hours now. The following error message appear on the PayPal website when trying to make a payment with a credit card… The PayPal site is currently experiencing technical difficulties with our credit card processor. We are [...]

While using Commonwealth Bank’s online bank NetBank last week I transferred over $1000 on to my Credit Card. I didn’t owe anything on this credit card I just wanted the funds on there to use… Since then I’d noticed my Available balance was on top $2000 of my limit… Really confused thinking the bank had [...]

Image storage: Database BLOB Vs. File system

Posted: 8th February 2008 by Grant Perry in Programming (app)

This raises an age old question which will likely be debated for many years to come. Ultimately both methods of storage have their benefits and costs. Storing images on the file system has a marginally faster retrieval rate, thanks to web and proxy servers being good at what they do. Storing images in a database [...]