<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Refreshingly Blue</title>
	<link>http://www.refreshinglyblue.com</link>
	<description>Notes From Lee Blue</description>
	<pubDate>Fri, 18 Jul 2008 17:16:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>My 2 Cents On Web Hosting</title>
		<link>http://www.refreshinglyblue.com/2008/07/18/my-2-cents-on-web-hosting/</link>
		<comments>http://www.refreshinglyblue.com/2008/07/18/my-2-cents-on-web-hosting/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 17:16:50 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/07/18/my-2-cents-on-web-hosting/</guid>
		<description><![CDATA[People regularly ask me where to host their websites. This is pretty much what I tell everybody.
RackSpace Is The Best

Unless You Don&#8217;t Want To Pay For Managed Hosting Or You Want Ruby on Rails Support
An entry level server at RackSpace will cost you about $500/month. If you can afford a managed, dedicated server, and your [...]]]></description>
			<content:encoded><![CDATA[<p>People regularly ask me where to host their websites. This is pretty much what I tell everybody.</p>
<h2>RackSpace Is The Best<br />
<h2>
<h3>Unless You Don&#8217;t Want To Pay For Managed Hosting <br/>Or You Want Ruby on Rails Support</h3>
<p>An entry level server at RackSpace will cost you about $500/month. If you can afford a managed, dedicated server, and your are working with PHP host with <a href="http://www.rackspace.com">RackSpace</a>. I have several servers with RackSpace and have been working with them now for over 5 years. The service, support, and reliability are fantastic unless you intend to host Ruby on Rails applications. RackSpace does not &#8220;officially support&#8221; Rails. When you are talking to the sales department they say they will help with Rails issues even though it&#8217;s not officially supported. My experience is that you are totally on your own with Ruby on Rails at Rackspace.</p>
<h2>RimuHosting Is The Best For Non-Managed Servers</h2>
<h3>The Best VPS, Semi-Dedicated and Dedicated Servers</h3>
<p>So if you want to run Rails apps or you don&#8217;t need a managed dedicated server, host with <a href="http://www.rimuhosting.com">RimuHosting</a>. This blog is hosted at RimuHosting and for the past 2 years I have had both VPS accounts and Dedicated servers there. The uptime, performance and reliability has been extremely good although not quite flawless. There was one time when one of my semi-dedicated VPS accounts was unavailable for about an hour and it was not a scheduled maintenance period. Even with that one blip in the service, my overall experience has been excellent and I highly recommend RimuHosting if you want a VPS account or a non-managed dedicated server. The support is extremely fast and helpful - albeit via email only. I prefer email though, as long as it&#8217;s attended to promptly. In your customer control panel, you can see the status of your support ticket, how long it has been since you have submitted it, whether or not anyone is working on it, etc. It really is better than phone service in my opinion.</p>
<h2>HostICan</h2>
<h3>The Best Shared Hosting Package I&#8217;ve Ever Seen</h3>
<p>If you just want a <a href="http://secure.hostican.com/cgi-bin/affiliates/clickthru.cgi?id=leehblue">low cost shared hosting</a> account, I have never seen a package that is better than the <a href="http://secure.hostican.com/cgi-bin/affiliates/clickthru.cgi?id=leehblue">BaseHost package with HostICan</a>. It is <strong>$6.95/month</strong> and you get 2,000 GB - yes about <strong>2 Terabytes</strong> of data storage. You can host 2 different domain names and get a <strong>free domain name for life</strong> when you sign up. The free domain name is at least worth the cost of one month of hosting each year. They offer a <strong>99.9% uptime</strong> guarantee. If you want a WordPress blog, the WordPress software is already there and ready to go. So this is great account to have if you want to <strong>host your own blog</strong>. You can even get <strong>SSH access</strong> but that adds a little to your monthly cost. They no longer support Ruby on Rails. But, if your building Rails apps, get a VPS account at <a href="http://www.rimuhosting.com">RimuHosting</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/07/18/my-2-cents-on-web-hosting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mac Mail: Signature With A Link</title>
		<link>http://www.refreshinglyblue.com/2008/07/15/mac-mail-signature-with-a-link/</link>
		<comments>http://www.refreshinglyblue.com/2008/07/15/mac-mail-signature-with-a-link/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 18:43:21 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[Everyday Tips]]></category>

		<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/07/15/mac-mail-signature-with-a-link/</guid>
		<description><![CDATA[I&#8217;ve been asked a few times how to make a signature with a link in Mac Mail. I&#8217;m using Leopard and I agree that it&#8217;s not very obvious how to pull this off. The steps are fairly simple as long as you know what to do.

Open a new mail message
Create a link in your mail [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been asked a few times how to make a signature with a link in Mac Mail. I&#8217;m using Leopard and I agree that it&#8217;s not very obvious how to pull this off. The steps are fairly simple as long as you know what to do.</p>
<ul>
<li>Open a new mail message</li>
<li>Create a link in your mail message</li>
<li>Copy your link into your signature</li>
</ul>
<p>Here is a quick screencast to show you how to pull this off. Not only does this work with links, but it also works with any other type of formatting in your mail message - bold, italics, fonts, etc.</p>
<p><embed src="http://blip.tv/play/AcKyVgA" type="application/x-shockwave-flash" width="510" height="330" allowscriptaccess="always" allowfullscreen="true"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/07/15/mac-mail-signature-with-a-link/feed/</wfw:commentRss>
		</item>
		<item>
		<title>IDs With Square Brackets And jQuery</title>
		<link>http://www.refreshinglyblue.com/2008/07/08/ids-with-square-brackets-and-jquery/</link>
		<comments>http://www.refreshinglyblue.com/2008/07/08/ids-with-square-brackets-and-jquery/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 17:28:11 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[CodeIgniter]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/07/08/ids-with-square-brackets-and-jquery/</guid>
		<description><![CDATA[I have recently become quite fond of using jQuery as my javascript library in conjunction with my CodeIgniter PHP projects. In PHP, I often name my form fields in the format of&#8230;

model_name[attribute_name]
For Example...
contact[first_name]
contact[last_name]
etc.

I do this so that I can easily retrieve all the attributes for each model and then quickly store them to the database [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently become quite fond of using jQuery as my javascript library in conjunction with my CodeIgniter PHP projects. In PHP, I often name my form fields in the format of&#8230;</p>
<pre>
model_name[attribute_name]
For Example...
contact[first_name]
contact[last_name]
etc.
</pre>
<p>I do this so that I can easily retrieve all the attributes for each model and then quickly store them to the database using CodeIgniter&#8217;s database helper functions. For example, taking advantage of the <a href="http://codeigniter.com/user_guide/database/active_record.html#insert">Active Record Insert Syntax</a>, I might write PHP code like this&#8230;</p>
<pre>
...
$contact = $_POST['contact'];
$this->db->insert("contacts", $contact);
...
</pre>
<p>When I started to use jQuery to do some client side javascript validation on my forms it was not immediately obvious to me that I needed to <strong>escape the square brackets</strong> in the jQuery calls.</p>
<pre>
&lt;script language="javascript"&gt;
  $(document).ready(function() {
    alert($('contact\[first_name\]).val());
  });
&lt;/script&gt;
</pre>
<p>Due to javascript&#8217;s encoding, you need to use <strong>double slashes</strong> - not just a single slash - to escape the square brackets.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/07/08/ids-with-square-brackets-and-jquery/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Ecommerce with CodeIgniter</title>
		<link>http://www.refreshinglyblue.com/2008/05/15/ecommerce-with-codeigniter/</link>
		<comments>http://www.refreshinglyblue.com/2008/05/15/ecommerce-with-codeigniter/#comments</comments>
		<pubDate>Thu, 15 May 2008 23:06:00 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[CodeIgniter]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/05/15/ecommerce-with-codeigniter/</guid>
		<description><![CDATA[Ironically the Zend Framework is marketed with the phrase &#8220;Extreme Simplicity &#38; Productivity&#8221;. I have developed a few sites with it now and I find it to be anything but simple and productive. It&#8217;s complicated, has a steep learning curve, and (in my opinion) needs a lot more work. I realize that I&#8217;m coming from [...]]]></description>
			<content:encoded><![CDATA[<p>Ironically the Zend Framework is marketed with the phrase &#8220;Extreme Simplicity &#38; Productivity&#8221;. I have developed a few sites with it now and I find it to be anything but simple and productive. It&#8217;s complicated, has a steep learning curve, and (in my opinion) needs a lot more work. I realize that I&#8217;m coming from a RoR background and that is a lot for a <span class="caps">PHP</span> framework to try to match. Nevertheless, I am quitting all Zend Framework development until more work can be done on the framework. Then, maybe I&#8217;ll reconsider.</p>
<p>I have found <a href="http://www.codeigniter.com">CodeIgniter</a> and have now built 3 sites with it. It&#8217;s simple, easy to use, speeds up development, has great documentation and, best of all, has won me as a fan. My most recent CodeIgniter project is an educational/e-commerce site about <a href="http://www.g-forcehealth.com">Rebounding with the Cellerciser</a> While developing the site and reading the site content, I was convinced of the many <a href="http://www.g-forcehealth.com/site/why-cellercise">reasons to use a Cellerciser</a> I&#8217;ve now been using a Cellerciser for about 3 months and I love this thing!</p>
<p> <a href="http://www.refreshinglyblue.com/2008/05/15/ecommerce-with-codeigniter/#more-22" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/05/15/ecommerce-with-codeigniter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How To Tar A Directory</title>
		<link>http://www.refreshinglyblue.com/2008/02/23/how-to-tar-a-directory/</link>
		<comments>http://www.refreshinglyblue.com/2008/02/23/how-to-tar-a-directory/#comments</comments>
		<pubDate>Sat, 23 Feb 2008 21:25:04 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[Everyday Tips]]></category>

		<category><![CDATA[Sys Admin]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/02/23/how-to-tar-a-directory/</guid>
		<description><![CDATA[I constantly forget how to tar a directory. I think the ln command and the tar command have their parameters in different orders and I can never seem to remember which parameter is the dir you are archiving and which one is the name for the archive. So here it is:
tar -czf archive.tgz dirName
]]></description>
			<content:encoded><![CDATA[<p>I constantly forget how to tar a directory. I think the <em>ln</em> command and the <em>tar</em> command have their parameters in different orders and I can never seem to remember which parameter is the dir you are archiving and which one is the name for the archive. So here it is:</p>
<pre>tar -czf archive.tgz dirName</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/02/23/how-to-tar-a-directory/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How To Sort A Zend_Db_Table_Rowset</title>
		<link>http://www.refreshinglyblue.com/2008/02/14/how-to-sort-a-zend_db_table_rowset/</link>
		<comments>http://www.refreshinglyblue.com/2008/02/14/how-to-sort-a-zend_db_table_rowset/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 20:53:02 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/02/14/how-to-sort-a-zend_db_table_rowset/</guid>
		<description><![CDATA[So you figured out how to define the relationships between your Zend_Db_Tables and you have issued a call to findDependentRowset(). You get your Rowset back but you need to sort the results by one of the columns in the dependent table. How do you do that?
The short answer is, you can&#8217;t! Unfortunately, this functionality won&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>So you figured out how to define the <a href="http://framework.zend.com/manual/en/zend.db.table.relationships.html">relationships between your Zend_Db_Tables</a> and you have issued a call to findDependentRowset(). You get your Rowset back but you need to sort the results by one of the columns in the dependent table. How do you do that?</p>
<p>The short answer is, <strong>you can&#8217;t!</strong> Unfortunately, this functionality won&#8217;t be available until the 1.5 release of the Zend Framework. But you can write your own utitlity function to sort your Rowset for you.</p>
<p> <a href="http://www.refreshinglyblue.com/2008/02/14/how-to-sort-a-zend_db_table_rowset/#more-20" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/02/14/how-to-sort-a-zend_db_table_rowset/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How To Implement Partials In Zend Framework 1.0.3</title>
		<link>http://www.refreshinglyblue.com/2008/02/11/how-to-implement-partials-in-zend-framework-103/</link>
		<comments>http://www.refreshinglyblue.com/2008/02/11/how-to-implement-partials-in-zend-framework-103/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 02:44:37 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/02/11/how-to-implement-partials-in-zend-framework-103/</guid>
		<description><![CDATA[The pre release of Zend Framework 1.5 has been out for a few days and includes an implementation for partials &#8211; among other things. But the GA release is still at least a few weeks off and I&#8217;ve got a project that needs to go live very soon. So, I&#8217;m using version 1.0.3 of the [...]]]></description>
			<content:encoded><![CDATA[<p>The pre release of Zend Framework 1.5 has been out for a few days and includes an <a href="http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.partial">implementation for partials</a> &#8211; among <a href="http://devzone.zend.com/article/3020-Zend-Framework-1.5.0-Preview-Release-now-available">other things</a>. But the GA release is still at least a few weeks off and I&#8217;ve got a project that needs to go live very soon. So, I&#8217;m using version 1.0.3 of the Zend Framework released on 11/30/2007, and I want to make use of partials in my project. The trick involves three steps.</p>
<ol>
<li>Create a View Helper</li>
<li>Access your Zend_View object from the View Helper (or instantiate a new one)</li>
<li>Render a view script from within the View Helper</li>
</ol>
<p> <a href="http://www.refreshinglyblue.com/2008/02/11/how-to-implement-partials-in-zend-framework-103/#more-19" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/02/11/how-to-implement-partials-in-zend-framework-103/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How To Implement A Ruby on Rails style before_filter With The PHP Zend Framework</title>
		<link>http://www.refreshinglyblue.com/2008/01/30/how-to-implement-a-ruby-on-rails-style-before_filter-with-the-php-zend-framework/</link>
		<comments>http://www.refreshinglyblue.com/2008/01/30/how-to-implement-a-ruby-on-rails-style-before_filter-with-the-php-zend-framework/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 17:17:55 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Ruby on Rails]]></category>

		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/01/30/how-to-implement-a-ruby-on-rails-style-before_filter-with-the-php-zend-framework/</guid>
		<description><![CDATA[I often use this when implementing a simple login screen for a password protected section of my application. In a Zend Framework application you can implement a preDispatch() function in a Zend_Controller_Action which will run before an action is dispatched. This lets you setup your filter to check to see if the visitor is logged [...]]]></description>
			<content:encoded><![CDATA[<p>I often use this when implementing a simple login screen for a password protected section of my application. In a <a href="http://framework.zend.com">Zend Framework</a> application you can implement a <a href="http://framework.zend.com/manual/en/zend.controller.plugins.html">preDispatch()</a> function in a Zend_Controller_Action which will run before an action is dispatched. This lets you setup your filter to check to see if the visitor is logged in or not. If the visitor is not logged in, you can redirect them to the login screen of your application.</p>
<h2>Setting Up Exceptions For preDispatch</h2>
<p>If your login screen is managed by a different controller, the setup described above is fine. If, however, your login screen is managed by an action in the same controller as the protected actions, you will want to allow unauthenticated access to the login screen. To do this, we need to exclude certain actions from the authentication check. Ruby on Rails let&#8217;s you define :except =&gt; :actionName to allow certain actions to skip the before_filter. With the Zend Framework, we have to implement that functionality on our own&#8230; but it&#8217;s easy.</p>
<h2>What Action Is Being Called?</h2>
<p>To set up your preDispatch function to skip checking to see if a user is logged in for certain actions you need to know which action is being called. You do that like this&#8230;</p>
<pre>
$action = $this-&gt;_request-&gt;getActionName();
</pre>
<h2>Example Code</h2>
<p>Now all you have to do is see if the action that is being called is one of the actions that you want to skip. I set up a private function called <em>verify()</em> to check whether or not the visitor is logged in. If the user is not logged in, I forward them to the loginAction() function. Since an unauthenticated user needs to be able to access the login screeen, we tell the <em>preDispatch()</em> function not to verify visitors requesting the login action. My controller ends up looking someting like this.</p>
<pre>
class AccountController extends Zend_Controller_Action {

  function preDispatch() {
    // Discover what action is being requested
    $action = $this-&gt;_request-&gt;getActionName();

    // Create a list of actions which allow unauthenticated access
    $exclusions = array("login");
    if(!in_array($action, $exclusions)) {
      $this-&gt;verify();
    }
  }

  /**
   * Check to see if the visitor is logged in. If not, send to loginAction
  */
  private function verifty() {
    $auth = Zend_Auth::getInstance();
    if(!$auth-&gt;hasIdentity()) {
      $this-&gt;_forward("login");
    }
  }

  function loginAction() {
    // Display your login screen
  }

  // Continue the rest of your class...
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/01/30/how-to-implement-a-ruby-on-rails-style-before_filter-with-the-php-zend-framework/feed/</wfw:commentRss>
		</item>
		<item>
		<title>QuietHeadphones.com Goes To Zend Framework</title>
		<link>http://www.refreshinglyblue.com/2008/01/24/quietheadphonescom-goes-to-zend-framework/</link>
		<comments>http://www.refreshinglyblue.com/2008/01/24/quietheadphonescom-goes-to-zend-framework/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 07:59:34 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/01/24/quietheadphonescom-goes-to-zend-framework/</guid>
		<description><![CDATA[A while back I wrote about using Ruby on Rails to develop QuietHeadphones.com, a website that sells high quality noise reduction headphones. Tonight, we made the move to the Zend Framework. We did this for a variety of reasons including the fact that we are now hosting our site on a dedicated server with RackSpace. [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I wrote about using Ruby on Rails to develop <a href="http://www.QuietHeadphones.com>QuietHeadphones.com</a>, a website that sells high quality <a href="http://www.quietheadphones.com>noise reduction headphones</a>. Tonight, we made the move to the Zend Framework. We did this for a variety of reasons including the fact that we are now hosting our site on a dedicated server with RackSpace. RackSpace is the absolute best hosting company on the planet provided you can afford their rates. RackSpace does not &#8220;officially&#8221; support Ruby on Rails. This was one of the significant factors in choosing the Zend Framework. Check back soon and I will have a fairly comprehensive comparison of our experience in developing an ecommerce website with the PHP Zend Framework versus our experience building the exact same site with Ruby on Rails.</p>
<p>In the meantime, we have two new products on the website. By popular demand, we now have an amazing set of <a href="http://www.quietheadphones.com/product/hp-25">speakerless noise reduction headphones</a>. We also have a great budget set of <a href="http://www.quietheadphones.com/product/ex-25">noise canceling headphones</a> that are smaller than our premier <a href="http://www.quietheadphones.com/product/ex-29">EX-29 Extreme Isolation Headphones</a>. This makes them <a href="">great for travel</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/01/24/quietheadphonescom-goes-to-zend-framework/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Add View Helper Paths For Entire Zend Framework Application</title>
		<link>http://www.refreshinglyblue.com/2008/01/17/add-view-helper-paths-for-entire-zend-framework-application/</link>
		<comments>http://www.refreshinglyblue.com/2008/01/17/add-view-helper-paths-for-entire-zend-framework-application/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 19:53:47 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Development]]></category>

		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.refreshinglyblue.com/2008/01/17/add-view-helper-paths-for-entire-zend-framework-application/</guid>
		<description><![CDATA[I have been writing several Zend_View_Helpers to aid in the development of my Zend Framework Application. The helpers are very generic and are used in many of my Views throught my applications. So, naturally, I want an easy way to configure my Views to have access to my custom View Helpers. You don&#8217;t want to [...]]]></description>
			<content:encoded><![CDATA[<p>I have been writing several Zend_View_Helpers to aid in the development of my Zend Framework Application. The helpers are very generic and are used in many of my Views throught my applications. So, naturally, I want an easy way to configure my Views to have access to my custom View Helpers. You don&#8217;t want to override the init() function in <span class="caps">ALL</span> of your controllers to set the View Helper path. Instead, set it in the bootstrap file &#8211; your index.php file in the root directory of your website. You do it like this:</p>
<pre>
$view = new Zend_View();
$view-&gt;addHelperPath("DU/View/Helper", "DU_View_Helper");
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
$viewRenderer-&gt;setView($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
</pre>
<p>Put those lines of code in your index.php file somewhere before you call dispatch() on your front controller and all of you view scripts will have access to your own library of View Helpers.</p>
<p>My company&#8217;s name is  Digital Underware so I have my library set up just like the Zend library in the lib directory of my application. The path to my View Helpers is lib/DU/View/Helper just like the path to the built-in Zend View Helpers is lib/Zend/View/Helper.</p>
<p>If you are interested in seeing a complete example, take a look at <a href="http://svn.spotsec.com/filedetails.php?repname=spotsecng-backup&#038;path=%2Fbranches%2Fpotatobob%2Fsrc%2Fwebconsole%2Fhtdocs%2Findex.php">this bootstrap file</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.refreshinglyblue.com/2008/01/17/add-view-helper-paths-for-entire-zend-framework-application/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
