<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[ZFSnippets]]></title>
    <link>http://feeds2.feedburner.com/Zfsnippets</link>
    <description><![CDATA[Zend Framework Code Snippets]]></description>
    <pubDate>Mon, 20 May 2013 07:15:12 +0200</pubDate>
    <managingEditor>admin@zfsnippets.com (zfsnippets)</managingEditor>
    <generator>Zend Framework Zend_Feed</generator>
    <language>en</language>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>180</ttl>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Zfsnippets" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="zfsnippets" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
      <title><![CDATA[Find out what things you need to consider when you are shopping for the best laptop hard drive for your computer]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/116</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/116</guid>
      <description><![CDATA[<p>Things to consider when shopping for the &lt;a href=&quot;http://www.harddrivestore.org/&quot;&gt;best hard disk drives&lt;/a&gt;<br />
If you are shopping for the best laptop hard drive, you're going to have your work cut out for you, especially &lt;a href=&quot;http://www.harddrivestore.org/&quot;&gt;buy laptop hard drive online&lt;/a&gt;. Finding a reliable hard drive to purchase is not going to be as easy as 123. You may have to spend some time looking around on the Internet and doing some comparison shopping so that you can find a hard disk for sale that will satisfy your expectations and meet your needs as well, before you make a determine you can just know about the &lt;a href=&quot;http://www.harddrivestore.org/&quot;&gt;laptop hard drive cost&lt;/a&gt; in the field. Using a laptop means that you're going to need enough space to store your files, install your software and do everything that you want to do on the computer. There a lot of things to consider when you purchase a new hard drive for your laptop. Below, you will find with some of these things are and why it's important to shop around for &lt;a href=&quot;http://www.harddrivestore.org/&quot;&gt;hard disk drives for sale&lt;/a&gt; so that you can find the precise laptop hard drive that you want to buy.<br />
<br />
1,Look for a hard disk drive that has enough space to meet your needs<br />
Knowing how much space you need on your hard drive can be a difficult thing. Often times, people don't think they need much space but then they come to realize that they needed more than they originally thought. For instance, some people think that they just need to purchase a hard drive that is going to cover their files. For instance, if they have about 10 gigabytes of files, they may purchase just a 20 to 40 gigabyte hard drive. The problem with this is that you are not accounting for the operating system. If you plan to run an operating system like Linux or Windows on the computer, then you need to purchase a hard drive that has enough space to properly run the operating system and store your files. There are other things to keep in mind as well, for instance, what software are you going to be putting on the computer? Software can take up a lot of space on a computer, especially games and software that is very complex. These types of software titles can get up into several gigabytes of space, so you need to have a big enough hard drive to accommodate for these applications.<br />
<br />
2,Remember that it's okay to go over what you need but it's not okay to go under<br />
Of course, you can easily see there are so many &lt;a href=&quot;http://www.harddrivestore.org/&quot;&gt;laptop hard drive for sale&lt;/a&gt; online, when purchasing a hard drive, it's okay to purchase more gigabytes than you actually need, just like me, I love installing lots of games, so I bought a big &lt;a href=&quot;http://www.harddrivestore.org/&quot;&gt;sony laptop hard drive&lt;/a&gt; in advance. However, if you were to purchase less gigabytes than you actually need, this is not going to be okay because you won't be able to do the things that you want to do on your computer. Be sure to shoot for more disk space. Keep in mind that installing a hard drive on a laptop can be more complicated than installing a hard drive on a desktop computer. You also need to accommodate for the installation costs when you're going to have a company install this for you. Look online and do some comparison shopping so that you can find the &lt;a href=&quot;http://www.harddrivestore.org/&quot;&gt;best laptop hard drive&lt;/a&gt; for a price that makes sense for your budget.<br />
<br />
Need more info about laptop hard drives or purchasing, please go harddrivestore.org<br />
<br />
&lt;br&gt;Thank you, useful.<br />
&lt;br&gt;Thank you, useful<br />
&lt;br&gt;But to be frank, it doesn't tell in detail what should we do to choose a best one, agree?<br />
&lt;br&gt;I don't think it's good to buy a new hard dirve, why not change the laptop? Lol.</p><p><a href="http://www.zfsnippets.com/snippets/view/id/116">Show snippet</a></p>]]></description>
      <pubDate>Sun, 12 May 2013 02:47:03 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[test]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/115</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/115</guid>
      <description><![CDATA[<p></p><p><a href="http://www.zfsnippets.com/snippets/view/id/115">Show snippet</a></p>]]></description>
      <pubDate>Wed, 02 Jan 2013 12:56:53 +0100</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend_View_Helper_Duration]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/114</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/114</guid>
      <description><![CDATA[<p>Render duration (\&quot;relative times\&quot;) in format driven by sprintf()-like specifiers.<br />
<br />
Example usage:<br />
<br />
Show 67 minutes as fractional hour formatted to 2 decimal places:<br />
&lt;?php<br />
echo $this-&gt;duration(new Zend_Measure_Time(67, Zend_Measure_Time::MINUTE))<br />
          -&gt;setFormat(\'%.2h\')<br />
          -&gt;setResolution(Zend_Measure_Time::HOUR)<br />
          -&gt;setPrecision(2)<br />
?&gt;<br />
<br />
Show as \&quot;H hours M minutes S seconds\&quot;:<br />
&lt;?php<br />
echo $this-&gt;duration(new Zend_Measure_Time(67, Zend_Measure_Time::MINUTE))<br />
          -&gt;setFormat(\'%h hours %m minutes %s seconds\')<br />
?&gt;</p><p><a href="http://www.zfsnippets.com/snippets/view/id/114">Show snippet</a></p>]]></description>
      <pubDate>Sat, 25 Feb 2012 03:52:45 +0100</pubDate>
    </item>
    <item>
      <title><![CDATA[zf-doctrine-base-tables-generator]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/113</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/113</guid>
      <description><![CDATA[<p>This is adaptation of sfDoctrineTablePlugin plugin\\\'s by Ilya Sabelnikov, for Zend Framework and Doctrine. My_Doctrine_Task_BuildTable is the Doctrine Cli task responsible for base tables generation. Base tables contains all available pre generated methods for given model.</p><p><a href="http://www.zfsnippets.com/snippets/view/id/113">Show snippet</a></p>]]></description>
      <pubDate>Wed, 22 Feb 2012 00:51:53 +0100</pubDate>
    </item>
    <item>
      <title><![CDATA[validator for Positive Integer Value]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/112</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/112</guid>
      <description><![CDATA[<p>Validates if $data given is an integer and greater than a number $min<br />
<br />
Useful when you want to check if a $_post or $_GET variable is a possitive integer and greater than a value ex. year <br />
<br />
$data=\'1999\';<br />
$min=\'2000\';<br />
the <br />
validatePositiveInteger($data, $min);<br />
will return false</p><p><a href="http://www.zfsnippets.com/snippets/view/id/112">Show snippet</a></p>]]></description>
      <pubDate>Thu, 29 Dec 2011 13:50:52 +0100</pubDate>
    </item>
    <item>
      <title><![CDATA[Defining Relationships]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/111</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/111</guid>
      <description><![CDATA[<p>Below are the PHP class definitions for these tables: </p><p><a href="http://www.zfsnippets.com/snippets/view/id/111">Show snippet</a></p>]]></description>
      <pubDate>Thu, 15 Dec 2011 22:32:40 +0100</pubDate>
    </item>
    <item>
      <title><![CDATA[Empty Label Decorator]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/110</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/110</guid>
      <description><![CDATA[<p>This Decorator simply add empty label<br />
&lt;label&gt;&amp;nbsp;&lt;/label&gt;<br />
in your html. It may be customized to create empty td like &lt;td&gt;&amp;nbsp;&lt;/td&gt; or anything as per the requirement.<br />
I used this decorator in one of my project where such empty label was placed before Submit button. But if we simply enable Label decorator like<br />
array(\&quot;decorator\&quot; =&gt; \&quot;Label\&quot;) <br />
for form element then it also print the label of the submit button. <br />
</p><p><a href="http://www.zfsnippets.com/snippets/view/id/110">Show snippet</a></p>]]></description>
      <pubDate>Mon, 05 Dec 2011 12:10:39 +0100</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Auth Action Helper]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/109</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/109</guid>
      <description><![CDATA[<p>This action helper authenticates user login. It expects either email address or username from the username field of login form and save the password using one way encryption \&quot;hash\&quot;. It creates a namespace with the name of \&quot;auth\&quot; in session. Variable \&quot;isLoggedInUser()\&quot; method can be called (for example in preDispatch) to check whether user is logged in or not.</p><p><a href="http://www.zfsnippets.com/snippets/view/id/109">Show snippet</a></p>]]></description>
      <pubDate>Mon, 05 Dec 2011 11:55:48 +0100</pubDate>
    </item>
    <item>
      <title><![CDATA[xxx]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/108</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/108</guid>
      <description><![CDATA[<p></p><p><a href="http://www.zfsnippets.com/snippets/view/id/108">Show snippet</a></p>]]></description>
      <pubDate>Wed, 02 Nov 2011 14:43:26 +0100</pubDate>
    </item>
    <item>
      <title><![CDATA[Password Validator]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/107</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/107</guid>
      <description><![CDATA[<p>Password validator with configurable options, located in library/My/Validate.<br />
<br />
Messages templates are in french, because I am... You\\\'ve got to adapt them.<br />
<br />
Example in a .ini file form a form :<br />
<br />
...<br />
elements.password.options.validators.password.validator = \&quot;Password\&quot;<br />
elements.password.options.validators.password.options.lowercase = 1<br />
elements.password.options.validators.password.options.uppercase = 1<br />
elements.password.options.validators.password.options.digit = 1<br />
elements.password.options.validators.password.options.min = 8<br />
...</p><p><a href="http://www.zfsnippets.com/snippets/view/id/107">Show snippet</a></p>]]></description>
      <pubDate>Fri, 30 Sep 2011 10:00:15 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[View_Helper_FlashMessages]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/106</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/106</guid>
      <description><![CDATA[<p>Modified View Helper - http://www.zfsnippets.com/snippets/view/id/37<br />
<br />
This is extended version of snippet above.<br />
Now You can easly add messages with status provided like this:<br />
$this-&gt;_helper-&gt;flashMessanger-&gt;addMessage(\'[status]|[Message]\');<br />
<br />
Examples:<br />
$this-&gt;_helper-&gt;flashMessanger-&gt;addMessage(\'sucess|Success message #1\');<br />
$this-&gt;_helper-&gt;flashMessanger-&gt;addMessage(\'error|Error message #1\');<br />
$this-&gt;_helper-&gt;flashMessanger-&gt;addMessage(\'warning|Warning message #1\');<br />
$this-&gt;_helper-&gt;flashMessanger-&gt;addMessage(\'sucess|Sucess message #2\');<br />
<br />
If no status is provided message is displayed as \'Info\'.</p><p><a href="http://www.zfsnippets.com/snippets/view/id/106">Show snippet</a></p>]]></description>
      <pubDate>Fri, 02 Sep 2011 09:40:07 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Framework reverse proxy cache]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/105</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/105</guid>
      <description><![CDATA[<p>A reverse proxy cache that undestands ESI standard, written on top of Zend Framework.</p><p><a href="http://www.zfsnippets.com/snippets/view/id/105">Show snippet</a></p>]]></description>
      <pubDate>Wed, 31 Aug 2011 07:36:53 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[Google Static Maps ViewHelper]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/104</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/104</guid>
      <description><![CDATA[<p>is simple google static maps api for zf view helper.<br />
plot on map single marker.</p><p><a href="http://www.zfsnippets.com/snippets/view/id/104">Show snippet</a></p>]]></description>
      <pubDate>Wed, 24 Aug 2011 10:04:24 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[Analytics]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/103</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/103</guid>
      <description><![CDATA[<p>https://github.com/lsv/zf-maa_analytics<br />
<br />
Analytics for Zend Framework.<br />
<br />
Supporting<br />
- Browser Settings Detection<br />
- Campaign Duration<br />
- Campaign Fields — Custom<br />
- Cross-Domain Linking<br />
<br />
And last but NOT least<br />
- Ecommerce Tracking<br />
<br />
Requires<br />
- PHP 5.3.x<br />
- Made with ZF 1.11.3</p><p><a href="http://www.zfsnippets.com/snippets/view/id/103">Show snippet</a></p>]]></description>
      <pubDate>Tue, 23 Aug 2011 20:36:29 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend_View_Helper_ConvertDate]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/102</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/102</guid>
      <description><![CDATA[<p></p><p><a href="http://www.zfsnippets.com/snippets/view/id/102">Show snippet</a></p>]]></description>
      <pubDate>Tue, 16 Aug 2011 12:37:54 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[How to get the HTML rendered results into variable]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/101</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/101</guid>
      <description><![CDATA[<p>Use this code into controller action<br />
http://tagmycode.com/s/76<br />
</p><p><a href="http://www.zfsnippets.com/snippets/view/id/101">Show snippet</a></p>]]></description>
      <pubDate>Tue, 12 Jul 2011 14:32:11 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[Session through all subdomains and domain aliases.]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/100</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/100</guid>
      <description><![CDATA[<p>There was task that every user has its own subdomain like http://feedback.angeldesk.com. AngelDesk is the base domain. feedback is a Zend routing variable \'customer\'. In application INI I added <br />
<br />
phpSettings.session.cookie_domain = \&quot;.angeldesk.com\&quot;<br />
<br />
That solved the problem. Bat later we added posibility to bind external domain to account like for example http://support.mightyextensions.com which is equal to http://mightyextensions.angeldesk.com<br />
<br />
The problem become to login to external domain. Session did not started there because cookie domain was always .angeldesk.com no matter what I did. And code above shows the only way it was possible to solve. It is to chnage public/index.php file.<br />
<br />
* Change \&quot;/angeldesk.com$/iU\&quot; to your main domain.<br />
</p><p><a href="http://www.zfsnippets.com/snippets/view/id/100">Show snippet</a></p>]]></description>
      <pubDate>Mon, 27 Jun 2011 09:10:52 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend_Pdf Page Count]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/99</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/99</guid>
      <description><![CDATA[<p>Prints a page count on each page of a Zend_Pdf document. This must be run after all of the pages have been added to the document.<br />
<br />
There may well be a better way of doing this built in to Zend_Pdf, but I am a maverick and have not read the documentation.</p><p><a href="http://www.zfsnippets.com/snippets/view/id/99">Show snippet</a></p>]]></description>
      <pubDate>Fri, 13 May 2011 10:59:34 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend_Filter_HtmlToText]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/98</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/98</guid>
      <description><![CDATA[<p>Strips all HTML and applies basic formats (email compatible) - means it does basic text formatting (h1-h6,a,b,i,u,strong,em,big,sup,legend), prefixes block elements with default vertical margin (p, h1-h6, ul...) with 2 newlines and such without default margin with single newlines. When those are nesting, those with margin succeed (means max. 2 newlines between blocks). Furthermore it parses ULs and OLs and even respects nesting.<br />
<br />
See example in class DocBlock</p><p><a href="http://www.zfsnippets.com/snippets/view/id/98">Show snippet</a></p>]]></description>
      <pubDate>Tue, 19 Apr 2011 15:12:49 +0200</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend_Auth_Adapter_MongoDb]]></title>
      <link>http://www.zfsnippets.com/snippets/view/id/97</link>
      <guid>http://www.zfsnippets.com/snippets/view/id/97</guid>
      <description><![CDATA[<p>Zend Auth Adapter for MongoDB</p><p><a href="http://www.zfsnippets.com/snippets/view/id/97">Show snippet</a></p>]]></description>
      <pubDate>Thu, 10 Mar 2011 16:03:33 +0100</pubDate>
    </item>
  </channel>
</rss>
