<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ian Warner&#187; Zend DB Metadata Caching with Zend Application &#8211; Ian Warner social / mobile consulation and development</title>
	<atom:link href="http://ianwarner.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianwarner.com</link>
	<description>Social / Mobile Application Zend Framework PHP Developer</description>
	<lastBuildDate>Mon, 23 Aug 2010 16:02:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Zend DB Metadata Caching with Zend Application</title>
		<link>http://ianwarner.com/zend-db-metadata-caching-zend-application/</link>
		<comments>http://ianwarner.com/zend-db-metadata-caching-zend-application/#comments</comments>
		<pubDate>Sat, 22 May 2010 22:57:49 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=54</guid>
		<description><![CDATA[Basically with Zend DB you should cache the MetaData lookup, as this can be an expensive process. Firstly in your application.ini you should have already set up your Cache settings, I now use the cachemanager default resource plugin provided by Zend ;; RESOURCE CACHE SETUP ;; resources.cachemanager.database.frontend.name = Core resources.cachemanager.database.frontend.options.lifetime = 7200 resources.cachemanager.database.frontend.options.automatic_serialization = true [...]]]></description>
			<content:encoded><![CDATA[<p>Basically with Zend DB you should cache the MetaData lookup, as this can be an expensive process.</p>
<p>Firstly in your application.ini you should have already set up your Cache settings, I now use the cachemanager default resource plugin provided by Zend</p>
<p><span id="more-54"></span></p>
<p><code><br />
;; RESOURCE CACHE SETUP ;;<br />
resources.cachemanager.database.frontend.name = Core<br />
resources.cachemanager.database.frontend.options.lifetime = 7200<br />
resources.cachemanager.database.frontend.options.automatic_serialization = true<br />
resources.cachemanager.database.backend.name = File<br />
resources.cachemanager.database.backend.options.cache_dir = ROOT_DIR "/tmp/cache"</code></p>
<p>Next add the following code to your bootstrap to set the metadata cache.</p>
<p><code><br />
protected function _initDbCache()<br />
{<br />
    // Bootstrap DB<br />
    $this->bootstrap('db');</p>
<p>    // Bootstrap cache<br />
    $this->bootstrap('cachemanager');<br />
    $cache = $this->getResource('cachemanager');</p>
<p>    // Set DB metadata cache<br />
    Zend_Db_Table_Abstract::setDefaultMetadataCache($cache->getCache('database'));<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/zend-db-metadata-caching-zend-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeBlender Debug Release</title>
		<link>http://ianwarner.com/codeblender-debug-release/</link>
		<comments>http://ianwarner.com/codeblender-debug-release/#comments</comments>
		<pubDate>Sat, 22 May 2010 13:13:43 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[CodeBlender]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=46</guid>
		<description><![CDATA[CodeBlender Debug is a Zend Framework in-line information bar. Giving reporting on things such as memory and variables. I have forked this from ZF Debug as this project seems to be slowing down somewhat; the last release being in September 2009. I have tidied up a majority of the code and added in a few [...]]]></description>
			<content:encoded><![CDATA[<p>CodeBlender Debug is a Zend Framework in-line information bar. Giving reporting on things such as memory and variables.</p>
<div id="attachment_47" class="wp-caption alignright" style="width: 160px"><a href="http://ianwarner.com/files/2010/05/Picture-1.png"><img src="http://ianwarner.com/files/2010/05/Picture-1-150x34.png" alt="CodeBlender Debug" title="CodeBlender Debug" width="150" height="34" class="size-thumbnail wp-image-47" /></a><p class="wp-caption-text">CodeBlender Debug</p></div>
<p><span id="more-46"></span></p>
<p>I have forked this from <a href="http://code.google.com/p/zfdebug/">ZF Debug</a> as this project seems to be slowing down somewhat; the last release being in September 2009.</p>
<p>I have tidied up a majority of the code and added in a few new features, including adding a resource plugin and relevant documentation on usage.</p>
<p>Over the next few weeks I will be re-writing a majority of the code to take into account user requirements and Zend enhancements. Including an in-line Task list.</p>
<p>Also this is my first outing on <a href="http://github.com/" title="GitHub">GitHub</a>, I am finding this resource amazing, so fully recommend it.</p>
<p>CodeBlender Debug project can be found here:<br />
<a href="http://github.com/iwarner/CodeBlender-Debug">http://github.com/iwarner/CodeBlender-Debug</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/codeblender-debug-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling layout and View rendering in Zend Framework</title>
		<link>http://ianwarner.com/disabling-layout-view-rendering-zend-framework/</link>
		<comments>http://ianwarner.com/disabling-layout-view-rendering-zend-framework/#comments</comments>
		<pubDate>Sat, 22 May 2010 13:01:41 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=44</guid>
		<description><![CDATA[Just wanted to place this often utilised snippet on my Blog, as I often forget the syntax! // To disable the rendering of the View use: $this->_helper->viewRenderer->setNoRender(); // To disable the layout use: $this->_helper->layout->disableLayout();]]></description>
			<content:encoded><![CDATA[<p>Just wanted to place this often utilised snippet on my Blog, as I often forget the syntax!</p>
<p>// To disable the rendering of the View use:<br />
$this->_helper->viewRenderer->setNoRender();</p>
<p>// To disable the layout use:<br />
$this->_helper->layout->disableLayout();</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/disabling-layout-view-rendering-zend-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Filter Standard Classes</title>
		<link>http://ianwarner.com/zend-filter-standard-classes/</link>
		<comments>http://ianwarner.com/zend-filter-standard-classes/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 16:22:58 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=33</guid>
		<description><![CDATA[Zend Framework comes with a standard set of filter classes. But if you are like me I always forget what is available. The documentation has a not easy to read list of these classes; it is necessary to scroll through the page and identify these. So I wanted to create a simple list of these, [...]]]></description>
			<content:encoded><![CDATA[<p>Zend Framework comes with a standard set of filter classes. But if you are like me I always forget what is available. The documentation has a not easy to read list of these classes; it is necessary to scroll through the page and identify these.</p>
<p>So I wanted to create a simple list of these, the full documentation can be found here: <a href="http://framework.zend.com/manual/en/zend.filter.set.html" title="Zend Filter">Zend Filter Set</a><br />
<span id="more-33"></span></p>
<ul>
<li>Alnum &#8211; removing all but alphabetic and digit characters</li>
<li>Alpha &#8211; removing all but alphabetic characters</li>
<li>BaseName &#8211; this filter will return the base name of the file</li>
<li>Boolean &#8211; changes a given input to be a boolean value</li>
<li>Callback</li>
<li>Compress &#8211; Creates archives</li>
<li>Decompress</li>
<li>Decrypt &#8211; will decrypt any given string with the provided setting</li>
<li>Digits &#8211; removing all but digit characters</li>
<li>Dir &#8211; Returns directory name component of path</li>
<li>Encrypt &#8211; encrypt any given string with the provided setting</li>
<li>HtmlEntities</li>
<li>Int</li>
<li>LocalizedToNormalized</li>
<li>NormalizedToLocalized</li>
<li>Null</li>
<li>PregReplace</li>
<li>RealPath</li>
<li>StringToLower</li>
<li>StringToUpper</li>
<li>StringTrim</li>
<li>StripNewlines</li>
<li>StripTags</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/zend-filter-standard-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Validation Standard Classes</title>
		<link>http://ianwarner.com/zend-validation-standard-classes/</link>
		<comments>http://ianwarner.com/zend-validation-standard-classes/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 15:54:41 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=30</guid>
		<description><![CDATA[Zend Framework comes with a standard set of validation classes. But if you are like me I always forget what is available. The documentation has not easy to read list of these classes; it is necessary to scroll through the page and then identify these. So I wanted to create a simple list of these, [...]]]></description>
			<content:encoded><![CDATA[<p>Zend Framework comes with a standard set of validation classes. But if you are like me I always forget what is available. The documentation has not easy to read list of these classes; it is necessary to scroll through the page and then identify these.</p>
<p>So I wanted to create a simple list of these, the full documentation can be found here: <a href="http://framework.zend.com/manual/en/zend.validate.set.html" title="Zend Validation">Zend Validate Set</a><br />
<span id="more-30"></span></p>
<ul>
<li>Alnum &#8211; only alphabetic and digit characters</li>
<li>Alpha &#8211; only alphabetic characters</li>
<li>Barcode</li>
<li>Between &#8211; $value is between the minimum and maximum boundary values</li>
<li>Callback</li>
<li>CreditCard</li>
<li>Ccnum &#8211; depreciated in favour of the CreditCard validator</li>
<li>Date &#8211; is a valid date of the format &#8216;YYYY-MM-DD&#8217;</li>
<li>Db_RecordExists</li>
<li>Db_NoRecordExists</li>
<li>Digits &#8211; only contains digit characters</li>
<li>EmailAddress</li>
<li>Float &#8211; floating-point value</li>
<li>GreaterThan</li>
<li>Hex</li>
<li>Hostname</li>
<li>Iban &#8211; a valid IBAN (International Bank Account Number)</li>
<li>Identical &#8211; a given value is identical with an set haystack</li>
<li>InArray</li>
<li>Int &#8211; a valid integer</li>
<li>Ip &#8211; a valid IP address</li>
<li>Isbn &#8211; validate an ISBN-10 or ISBN-13 value</li>
<li>LessThan</li>
<li>NotEmpty</li>
<li>PostCode</li>
<li>Regex</li>
<li>Sitemap Validators</li>
<li>StringLength</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/zend-validation-standard-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autoload Check if Class Exists</title>
		<link>http://ianwarner.com/autoload-check-if-class-exists/</link>
		<comments>http://ianwarner.com/autoload-check-if-class-exists/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 11:57:23 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Zend Framework function to check if a class is accessible. // Check to see if there is a Comment Model if (Zend_Loader_Autoloader::autoload('Default_Model_DBTable_Comment')) { // Save the comment into the database $table = new Default_Model_DBTable_Comment(); $table->insert($data); } else { echo 'NO WAY'; } Very useful when trying to create a modular site system. This way we [...]]]></description>
			<content:encoded><![CDATA[<p>Zend Framework function to check if a class is accessible.</p>
<pre class="ln-1"><code class="php">
// Check to see if there is a Comment Model
if (Zend_Loader_Autoloader::autoload('Default_Model_DBTable_Comment')) {

    // Save the comment into the database
    $table = new Default_Model_DBTable_Comment();
    $table->insert($data);

} else {
    echo 'NO WAY';
}
</code></pre>
<p>Very useful when trying to create a modular site system. This way we can determine for instance if a site should have the ability to log questions posted on the contact page or not, based on whether they have the model available to handle the transactions.</p>
<p>Obvious overhead in if_file_exists calls made.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/autoload-check-if-class-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
