Posts tagged: Zend_View_Helper_Abstract

Zend Framework: Render If Exists

By , Sunday 12th December 2010 4:19 pm

Summary

This is a quick post to discuss the rather simple view helper I created for rendering a Zend Framework style view file only if it exists. Generally asking the code to render a file which doesn’t exist will throw an exception. Therefore I created a wrapper for the Zend_View::render() method which determined whether the file exists and if so renders, otherwise simply returns an empty string.
Continue reading 'Zend Framework: Render If Exists'»

Creating URL in Zend Custom View Helper

By , Thursday 28th January 2010 11:01 pm

This may seem simple, but I was banging my head trying to create a URL in a custom view helper in Zend Framework. I have routing setup which gets the module from the sub-domain in use so I couldn’t use a simple hardcoded URL.

Continue reading 'Creating URL in Zend Custom View Helper'»













Panorama Theme by Themocracy

8 visitors online now
1 guests, 7 bots, 0 members
Max visitors today: 23 at 10:05 am UTC
This month: 23 at 05-02-2012 10:05 am UTC
This year: 54 at 09-01-2012 07:56 pm UTC
All time: 130 at 28-03-2011 10:40 pm UTC