<?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>Fabrizio Balliano &#187; PHP</title>
	<atom:link href="http://fabrizioballiano.net/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://fabrizioballiano.net</link>
	<description></description>
	<lastBuildDate>Fri, 04 May 2012 15:34:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Magento and .git directory hiding</title>
		<link>http://fabrizioballiano.net/2012/03/23/magento-and-git-directory-hiding/</link>
		<comments>http://fabrizioballiano.net/2012/03/23/magento-and-git-directory-hiding/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 08:00:43 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/?p=779</guid>
		<description><![CDATA[If you&#8217;re deploying a Magento website using git you surely do not want the .git directory to be visible from the browser, so just put this line in your .htaccess: right after: let&#8217;s have a nice day now :) Share/bookmark:]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re deploying a Magento website using git you surely do not want the .git directory to be visible from the browser, so just put this line in your .htaccess:</p>
<pre class="brush: plain; title: ; notranslate">RewriteRule .*\.git/.* - [F]</pre>
<p>right after:</p>
<pre class="brush: plain; title: ; notranslate">RewriteEngine on</pre>
<p>let&#8217;s have a nice day now :)</p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F23%2Fmagento-and-git-directory-hiding%2F&amp;title=Magento%20and%20.git%20directory%20hiding" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F23%2Fmagento-and-git-directory-hiding%2F&amp;title=Magento%20and%20.git%20directory%20hiding" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F23%2Fmagento-and-git-directory-hiding%2F&amp;t=Magento%20and%20.git%20directory%20hiding" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F23%2Fmagento-and-git-directory-hiding%2F&amp;title=Magento%20and%20.git%20directory%20hiding" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F23%2Fmagento-and-git-directory-hiding%2F&amp;title=Magento%20and%20.git%20directory%20hiding" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F23%2Fmagento-and-git-directory-hiding%2F&amp;title=Magento%20and%20.git%20directory%20hiding" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F23%2Fmagento-and-git-directory-hiding%2F&amp;title=Magento%20and%20.git%20directory%20hiding" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F23%2Fmagento-and-git-directory-hiding%2F&amp;title=Magento%20and%20.git%20directory%20hiding" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F23%2Fmagento-and-git-directory-hiding%2F&amp;h=Magento%20and%20.git%20directory%20hiding" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2012/03/23/magento-and-git-directory-hiding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento reindexer issue and very bad fix</title>
		<link>http://fabrizioballiano.net/2012/03/22/magento-reindexer-issue-and-very-bad-fix/</link>
		<comments>http://fabrizioballiano.net/2012/03/22/magento-reindexer-issue-and-very-bad-fix/#comments</comments>
		<pubDate>Thu, 22 Mar 2012 15:26:07 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/?p=774</guid>
		<description><![CDATA[On a big website, while Magento (this was a Professional 1.10.something) is reindexing (work done by a cron job) every page (viewed from the browser) seems to try to reindex the products it shows, that ends in a duplicate key error on an index temporary table (catalog_product_index_price_tmp), I needed a rough and quickfix I opened app\code\core\Mage\Index\Model\Resource\Helper\Abstract.php [...]]]></description>
			<content:encoded><![CDATA[<p>On a big website, while Magento (this was a Professional 1.10.something) is reindexing (work done by a cron job) every page (viewed from the browser) seems to try to reindex the products it shows, that ends in a duplicate key error on an index temporary table (catalog_product_index_price_tmp), I needed a rough and quickfix I opened <em>app\code\core\Mage\Index\Model\Resource\Helper\Abstract.php</em> and added a try/catch to the <em>insertFromSelect</em> method, making it become:</p>
<pre class="brush: php; title: ; notranslate">public function insertFromSelect($select, $destTable, array $columns, $readToIndex = true)
    {
		try {
        if ($readToIndex) {
            $from   = $this-&gt;_getWriteAdapter();
            $to     = $this-&gt;_getIndexAdapter();
        } else {
            $from   = $this-&gt;_getIndexAdapter();
            $to     = $this-&gt;_getWriteAdapter();
        }

        if ($this-&gt;useDisableKeys()) {
            $to-&gt;disableTableKeys($destTable);
        }
        if ($from === $to) {
            $query = $select-&gt;insertFromSelect($destTable, $columns);
            $to-&gt;query($query);
        } else {
            $stmt = $from-&gt;query($select);
            $data = array();
            $counter = 0;
            while ($row = $stmt-&gt;fetch(PDO::FETCH_NUM)) {
                $data[] = $row;
                $counter++;
                if ($counter&gt;2000) {
                    $to-&gt;insertArray($destTable, $columns, $data);
                    $data = array();
                    $counter = 0;
                }
            }
            if (!empty($data)) {
                $to-&gt;insertArray($destTable, $columns, $data);
            }
        }
        if ($this-&gt;useDisableKeys()) {
            $to-&gt;enableTableKeys($destTable);
        }
		} catch (Exception $e) {}
        return $this;
    }</pre>
<p>It is bad but now it&#8217;s working, oh god.</p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F22%2Fmagento-reindexer-issue-and-very-bad-fix%2F&amp;title=Magento%20reindexer%20issue%20and%20very%20bad%20fix" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F22%2Fmagento-reindexer-issue-and-very-bad-fix%2F&amp;title=Magento%20reindexer%20issue%20and%20very%20bad%20fix" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F22%2Fmagento-reindexer-issue-and-very-bad-fix%2F&amp;t=Magento%20reindexer%20issue%20and%20very%20bad%20fix" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F22%2Fmagento-reindexer-issue-and-very-bad-fix%2F&amp;title=Magento%20reindexer%20issue%20and%20very%20bad%20fix" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F22%2Fmagento-reindexer-issue-and-very-bad-fix%2F&amp;title=Magento%20reindexer%20issue%20and%20very%20bad%20fix" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F22%2Fmagento-reindexer-issue-and-very-bad-fix%2F&amp;title=Magento%20reindexer%20issue%20and%20very%20bad%20fix" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F22%2Fmagento-reindexer-issue-and-very-bad-fix%2F&amp;title=Magento%20reindexer%20issue%20and%20very%20bad%20fix" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F22%2Fmagento-reindexer-issue-and-very-bad-fix%2F&amp;title=Magento%20reindexer%20issue%20and%20very%20bad%20fix" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F03%2F22%2Fmagento-reindexer-issue-and-very-bad-fix%2F&amp;h=Magento%20reindexer%20issue%20and%20very%20bad%20fix" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2012/03/22/magento-reindexer-issue-and-very-bad-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmatically delete all Magento attribute sets</title>
		<link>http://fabrizioballiano.net/2012/02/21/programmatically-delete-all-magento-attribute-sets/</link>
		<comments>http://fabrizioballiano.net/2012/02/21/programmatically-delete-all-magento-attribute-sets/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 15:30:20 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/?p=759</guid>
		<description><![CDATA[You&#8217;re developing a Magento importer and you want to clean your DB after some tests? Here you have: Note that only products&#8217; attribute sets are deleted, those are often generated automatically during imports. Share/bookmark:]]></description>
			<content:encoded><![CDATA[<p>You&#8217;re developing a Magento importer and you want to clean your DB after some tests? Here you have:</p>
<pre class="brush: php; title: ; notranslate">require_once dirname(__FILE__) . '/app/Mage.php';
Mage::app()-&gt;setCurrentStore(Mage::getModel('core/store')-&gt;load(Mage_Core_Model_App::ADMIN_STORE_ID));

$resource = Mage::getSingleton('core/resource');
$db_read = $resource-&gt;getConnection('core_read');

$attribute_sets = $db_read-&gt;fetchCol(&quot;SELECT attribute_set_id FROM &quot; . $resource-&gt;getTableName(&quot;eav_attribute_set&quot;) . &quot; WHERE attribute_set_id&lt;&gt; 4 AND entity_type_id=4&quot;);
foreach ($attribute_sets as $attribute_set_id) {
	try {
		Mage::getModel(&quot;eav/entity_attribute_set&quot;)-&gt;load($attribute_set_id)-&gt;delete();
	} catch (Exception $e) {
		echo $e-&gt;getMessage() . &quot;\n&quot;;
	}
}</pre>
<p>Note that only products&#8217; attribute sets are deleted, those are often generated automatically during imports.</p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-attribute-sets%2F&amp;title=Programmatically%20delete%20all%20Magento%20attribute%20sets" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-attribute-sets%2F&amp;title=Programmatically%20delete%20all%20Magento%20attribute%20sets" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-attribute-sets%2F&amp;t=Programmatically%20delete%20all%20Magento%20attribute%20sets" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-attribute-sets%2F&amp;title=Programmatically%20delete%20all%20Magento%20attribute%20sets" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-attribute-sets%2F&amp;title=Programmatically%20delete%20all%20Magento%20attribute%20sets" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-attribute-sets%2F&amp;title=Programmatically%20delete%20all%20Magento%20attribute%20sets" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-attribute-sets%2F&amp;title=Programmatically%20delete%20all%20Magento%20attribute%20sets" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-attribute-sets%2F&amp;title=Programmatically%20delete%20all%20Magento%20attribute%20sets" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-attribute-sets%2F&amp;h=Programmatically%20delete%20all%20Magento%20attribute%20sets" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2012/02/21/programmatically-delete-all-magento-attribute-sets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmatically delete all Magento categories</title>
		<link>http://fabrizioballiano.net/2012/02/21/programmatically-delete-all-magento-categories/</link>
		<comments>http://fabrizioballiano.net/2012/02/21/programmatically-delete-all-magento-categories/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 14:45:10 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/?p=757</guid>
		<description><![CDATA[You&#8217;re developing a Magento importer and you want to clean your DB after some tests? Here you have: Share/bookmark:]]></description>
			<content:encoded><![CDATA[<p>You&#8217;re developing a Magento importer and you want to clean your DB after some tests? Here you have:</p>
<pre class="brush: php; title: ; notranslate">require_once dirname(__FILE__) . '/app/Mage.php';
Mage::app()-&gt;setCurrentStore(Mage::getModel('core/store')-&gt;load(Mage_Core_Model_App::ADMIN_STORE_ID));

$resource = Mage::getSingleton('core/resource');
$db_read = $resource-&gt;getConnection('core_read');

$categories = $db_read-&gt;fetchCol(&quot;SELECT entity_id FROM &quot; . $resource-&gt;getTableName(&quot;catalog_category_entity&quot;) . &quot; WHERE entity_id&gt;1 ORDER BY entity_id DESC&quot;);
foreach ($categories as $category_id) {
	try {
		Mage::getModel(&quot;catalog/category&quot;)-&gt;load($category_id)-&gt;delete();
	} catch (Exception $e) {
		echo $e-&gt;getMessage() . &quot;\n&quot;;
	}
}</pre>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-categories%2F&amp;title=Programmatically%20delete%20all%20Magento%20categories" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-categories%2F&amp;title=Programmatically%20delete%20all%20Magento%20categories" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-categories%2F&amp;t=Programmatically%20delete%20all%20Magento%20categories" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-categories%2F&amp;title=Programmatically%20delete%20all%20Magento%20categories" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-categories%2F&amp;title=Programmatically%20delete%20all%20Magento%20categories" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-categories%2F&amp;title=Programmatically%20delete%20all%20Magento%20categories" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-categories%2F&amp;title=Programmatically%20delete%20all%20Magento%20categories" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-categories%2F&amp;title=Programmatically%20delete%20all%20Magento%20categories" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F21%2Fprogrammatically-delete-all-magento-categories%2F&amp;h=Programmatically%20delete%20all%20Magento%20categories" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2012/02/21/programmatically-delete-all-magento-categories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a custom category attribute in Magento</title>
		<link>http://fabrizioballiano.net/2012/02/08/create-a-custom-category-attribute-in-magento/</link>
		<comments>http://fabrizioballiano.net/2012/02/08/create-a-custom-category-attribute-in-magento/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 10:31:16 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/2012/02/08/create-a-custom-category-attribute-in-magento/</guid>
		<description><![CDATA[I&#8217;ve run into a few posts about this thing but none of them was working out of the box so I took all the info and glued them together so&#8230; if you&#8217;ve to create a custom attribute for a Magento category but you don&#8217;t have a module (and its installer script) simply create a php [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve run into a few posts about this thing but none of them was working out of the box so I took all the info and glued them together so&#8230;</p>
<p>if you&#8217;ve to create a custom attribute for a Magento category but you don&#8217;t have a module (and its installer script) simply create a php file in the project&#8217;s root with this code:</p>
<pre class="brush: php; title: ; notranslate">require_once('app/Mage.php');
Mage::app()-&gt;setCurrentStore(Mage::getModel('core/store')-&gt;load(Mage_Core_Model_App::ADMIN_STORE_ID));
$installer = new Mage_Sales_Model_Mysql4_Setup;
$attribute  = array(
	'type' =&gt; 'int',
	'label'=&gt; 'Your attribute label',
	'input' =&gt; 'text',
	'global' =&gt; Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
	'visible' =&gt; true,
	'required' =&gt; false,
	'user_defined' =&gt; true,
	'default' =&gt; &quot;&quot;,
	'group' =&gt; &quot;General Information&quot;
);
$installer-&gt;addAttribute('catalog_category', 'your_attribute_code', $attribute);
$installer-&gt;endSetup();</pre>
<p>This attribute is a &#8220;text&#8221;, more info may come in comments if you need.</p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F08%2Fcreate-a-custom-category-attribute-in-magento%2F&amp;title=Create%20a%20custom%20category%20attribute%20in%20Magento" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F08%2Fcreate-a-custom-category-attribute-in-magento%2F&amp;title=Create%20a%20custom%20category%20attribute%20in%20Magento" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F08%2Fcreate-a-custom-category-attribute-in-magento%2F&amp;t=Create%20a%20custom%20category%20attribute%20in%20Magento" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F08%2Fcreate-a-custom-category-attribute-in-magento%2F&amp;title=Create%20a%20custom%20category%20attribute%20in%20Magento" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F08%2Fcreate-a-custom-category-attribute-in-magento%2F&amp;title=Create%20a%20custom%20category%20attribute%20in%20Magento" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F08%2Fcreate-a-custom-category-attribute-in-magento%2F&amp;title=Create%20a%20custom%20category%20attribute%20in%20Magento" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F08%2Fcreate-a-custom-category-attribute-in-magento%2F&amp;title=Create%20a%20custom%20category%20attribute%20in%20Magento" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F08%2Fcreate-a-custom-category-attribute-in-magento%2F&amp;title=Create%20a%20custom%20category%20attribute%20in%20Magento" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2012%2F02%2F08%2Fcreate-a-custom-category-attribute-in-magento%2F&amp;h=Create%20a%20custom%20category%20attribute%20in%20Magento" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2012/02/08/create-a-custom-category-attribute-in-magento/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento Professional customer&#8217;s password hashing</title>
		<link>http://fabrizioballiano.net/2011/11/30/magento-professional-customers-password-hashing/</link>
		<comments>http://fabrizioballiano.net/2011/11/30/magento-professional-customers-password-hashing/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 13:50:48 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/2011/11/30/magento-professional-customers-password-hashing/</guid>
		<description><![CDATA[So you want to import customer accounts but you&#8217;ve to generate the password hash? here you&#8217;ve the algorithm used by Magento Professional (which is different from Magento Community, but you can easily find that one in the net): By the way, for the community it&#8217;s Share/bookmark:]]></description>
			<content:encoded><![CDATA[<p>So you want to import customer accounts but you&#8217;ve to generate the password hash? here you&#8217;ve the algorithm used by Magento Professional (which is different from Magento Community, but you can easily find that one in the net):</p>
<pre class="brush: php; light: true; title: ; notranslate">$passhash = hash(&quot;sha256&quot;, $salt . $password) . &quot;:$salt&quot;;</pre>
<p>By the way, for the community it&#8217;s</p>
<pre class="brush: php; light: true; title: ; notranslate">$passhash = md5($salt . $password) . &quot;:$salt&quot;;</pre>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F30%2Fmagento-professional-customers-password-hashing%2F&amp;title=Magento%20Professional%20customer%27s%20password%20hashing" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F30%2Fmagento-professional-customers-password-hashing%2F&amp;title=Magento%20Professional%20customer%27s%20password%20hashing" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F30%2Fmagento-professional-customers-password-hashing%2F&amp;t=Magento%20Professional%20customer%27s%20password%20hashing" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F30%2Fmagento-professional-customers-password-hashing%2F&amp;title=Magento%20Professional%20customer%27s%20password%20hashing" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F30%2Fmagento-professional-customers-password-hashing%2F&amp;title=Magento%20Professional%20customer%27s%20password%20hashing" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F30%2Fmagento-professional-customers-password-hashing%2F&amp;title=Magento%20Professional%20customer%27s%20password%20hashing" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F30%2Fmagento-professional-customers-password-hashing%2F&amp;title=Magento%20Professional%20customer%27s%20password%20hashing" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F30%2Fmagento-professional-customers-password-hashing%2F&amp;title=Magento%20Professional%20customer%27s%20password%20hashing" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F30%2Fmagento-professional-customers-password-hashing%2F&amp;h=Magento%20Professional%20customer%27s%20password%20hashing" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2011/11/30/magento-professional-customers-password-hashing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a custom order attribute in Magento</title>
		<link>http://fabrizioballiano.net/2011/11/15/create-a-custom-order-attribute-in-magento/</link>
		<comments>http://fabrizioballiano.net/2011/11/15/create-a-custom-order-attribute-in-magento/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 09:54:25 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/?p=735</guid>
		<description><![CDATA[I&#8217;ve run into a few posts about this thing but none of them was working out of the box so I took all the info and glued them together so&#8230; if you&#8217;ve to create a custom attribute for a Magento order but you don&#8217;t have a module (and its installer script) simply create a php [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve run into a few posts about this thing but none of them was working out of the box so I took all the info and glued them together so&#8230;</p>
<p>if you&#8217;ve to create a custom attribute for a Magento order but you don&#8217;t have a module (and its installer script) simply create a php file in the project&#8217;s root with this code:</p>
<pre class="brush: php; title: ; notranslate">require_once('app/Mage.php');
Mage::app()-&gt;setCurrentStore(Mage::getModel('core/store')-&gt;load(Mage_Core_Model_App::ADMIN_STORE_ID));
$installer = new Mage_Sales_Model_Mysql4_Setup;
$attribute  = array(
        'type'          =&gt; 'text',
        'backend_type'  =&gt; 'text',
        'frontend_input' =&gt; 'text',
        'is_user_defined' =&gt; true,
        'label'         =&gt; 'Your attribute label',
        'visible'       =&gt; true,
        'required'      =&gt; false,
        'user_defined'  =&gt; false,
        'searchable'    =&gt; false,
        'filterable'    =&gt; false,
        'comparable'    =&gt; false,
        'default'       =&gt; ''
);
$installer-&gt;addAttribute('order', 'your_attribute_code', $attribute);
$installer-&gt;endSetup();</pre>
<p>This attribute is a &#8220;text&#8221; and it&#8217;s made not to be visible but just to use it as a container for some data you may need in your custom development, more info may come in comments if you need.</p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F15%2Fcreate-a-custom-order-attribute-in-magento%2F&amp;title=Create%20a%20custom%20order%20attribute%20in%20Magento" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F15%2Fcreate-a-custom-order-attribute-in-magento%2F&amp;title=Create%20a%20custom%20order%20attribute%20in%20Magento" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F15%2Fcreate-a-custom-order-attribute-in-magento%2F&amp;t=Create%20a%20custom%20order%20attribute%20in%20Magento" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F15%2Fcreate-a-custom-order-attribute-in-magento%2F&amp;title=Create%20a%20custom%20order%20attribute%20in%20Magento" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F15%2Fcreate-a-custom-order-attribute-in-magento%2F&amp;title=Create%20a%20custom%20order%20attribute%20in%20Magento" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F15%2Fcreate-a-custom-order-attribute-in-magento%2F&amp;title=Create%20a%20custom%20order%20attribute%20in%20Magento" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F15%2Fcreate-a-custom-order-attribute-in-magento%2F&amp;title=Create%20a%20custom%20order%20attribute%20in%20Magento" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F15%2Fcreate-a-custom-order-attribute-in-magento%2F&amp;title=Create%20a%20custom%20order%20attribute%20in%20Magento" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F11%2F15%2Fcreate-a-custom-order-attribute-in-magento%2F&amp;h=Create%20a%20custom%20order%20attribute%20in%20Magento" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2011/11/15/create-a-custom-order-attribute-in-magento/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>P4A 3.8.4 is out!</title>
		<link>http://fabrizioballiano.net/2011/08/11/p4a-3-8-4/</link>
		<comments>http://fabrizioballiano.net/2011/08/11/p4a-3-8-4/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 11:58:59 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[P4A]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Things I do]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/2011/08/11/p4a-3-8-3-is-out-2/</guid>
		<description><![CDATA[Another maintenance release for our beloved project, here you&#8217;ve the changelog: - &#8220;meta viewport&#8221; tag was added to mask&#8217;s HTML for a better mobile rendering - P4A::getMetaViewport() and setMetaViewport() methods were added - p4a_center_elements() javascript funcion now removes marginLeft/paddingLeft from the first visible column of the first P4A_Frame widget - a bug with P4A_Frame and [...]]]></description>
			<content:encoded><![CDATA[<p>Another maintenance release for our beloved project, here you&#8217;ve the changelog:</p>
<blockquote><p>- &#8220;meta viewport&#8221; tag was added to mask&#8217;s HTML for a better mobile rendering<br />
- P4A::getMetaViewport() and setMetaViewport() methods were added<br />
- p4a_center_elements() javascript funcion now removes marginLeft/paddingLeft<br />
  from the first visible column of the first P4A_Frame widget<br />
- a bug with P4A_Frame and multiple CSS classes was solved<br />
- P4A_Table&#8217;s arrow symbols were because the past ones weren&#8217;t shown on mobile<br />
  devices<br />
- an ob_clean() call was added to P4A_Thumbnail_Generator::outputThumbnail()<br />
  method<br />
- Zend Framework was updated to 1.11.10<br />
- P4A_Table&#8217;s image cols do not throw exception anymore if the image<br />
  does not exist<br />
- P4A_Field_loadSelectByArray helper now supports a second parameter to specify<br />
  the array&#8217;s primary key field name</p></blockquote>
<p><a href="http://sourceforge.net/projects/p4a/files/p4a/3.8.4">Download P4A 3.8.4</a></p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F08%2F11%2Fp4a-3-8-4%2F&amp;title=P4A%203.8.4%20is%20out%21" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F08%2F11%2Fp4a-3-8-4%2F&amp;title=P4A%203.8.4%20is%20out%21" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F08%2F11%2Fp4a-3-8-4%2F&amp;t=P4A%203.8.4%20is%20out%21" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F08%2F11%2Fp4a-3-8-4%2F&amp;title=P4A%203.8.4%20is%20out%21" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F08%2F11%2Fp4a-3-8-4%2F&amp;title=P4A%203.8.4%20is%20out%21" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F08%2F11%2Fp4a-3-8-4%2F&amp;title=P4A%203.8.4%20is%20out%21" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F08%2F11%2Fp4a-3-8-4%2F&amp;title=P4A%203.8.4%20is%20out%21" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F08%2F11%2Fp4a-3-8-4%2F&amp;title=P4A%203.8.4%20is%20out%21" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F08%2F11%2Fp4a-3-8-4%2F&amp;h=P4A%203.8.4%20is%20out%21" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2011/08/11/p4a-3-8-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>P4A 3.8.3 is out!</title>
		<link>http://fabrizioballiano.net/2011/06/15/p4a-3-8-3-is-out/</link>
		<comments>http://fabrizioballiano.net/2011/06/15/p4a-3-8-3-is-out/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 08:04:30 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[P4A]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Things I do]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/2011/06/15/p4a-3-8-3-is-out/</guid>
		<description><![CDATA[A few improvements on different areas, here you&#8217;ve the changelog: - P4A_DB_Navigator now supports query defined sources - a bug with P4A_Data_Source::saveUploads() was solved - a bug with P4A_Table&#8217;s image cols (without GD installed) was solved - P4A_DB_Navigator now triggers a beforeclick event - all p4a_load_js calls were migrated to require.js - a bug with [...]]]></description>
			<content:encoded><![CDATA[<p>A few improvements on different areas, here you&#8217;ve the changelog:</p>
<blockquote><p>- P4A_DB_Navigator now supports query defined sources<br />
- a bug with P4A_Data_Source::saveUploads() was solved<br />
- a bug with P4A_Table&#8217;s image cols (without GD installed) was solved<br />
- P4A_DB_Navigator now triggers a beforeclick event<br />
- all p4a_load_js calls were migrated to require.js<br />
- a bug with P4A_DB_Source::deleteRow() called when in newRow state was solved<br />
- p4a_ajax_enable javascript function was added<br />
- a bug with P4A_GD constant default definition was solved<br />
- P4A_Mask::restart() method was added<br />
- Zend Framework was updated to 1.11.7<br />
- translations were updated<br />
- P4A_DB_Source::load() method now checks for duplicate calls and throws an error</p></blockquote>
<p><a href="http://sourceforge.net/projects/p4a/files/p4a/3.8.3">Download P4A 3.8.3</a></p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F06%2F15%2Fp4a-3-8-3-is-out%2F&amp;title=P4A%203.8.3%20is%20out%21" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F06%2F15%2Fp4a-3-8-3-is-out%2F&amp;title=P4A%203.8.3%20is%20out%21" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F06%2F15%2Fp4a-3-8-3-is-out%2F&amp;t=P4A%203.8.3%20is%20out%21" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F06%2F15%2Fp4a-3-8-3-is-out%2F&amp;title=P4A%203.8.3%20is%20out%21" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F06%2F15%2Fp4a-3-8-3-is-out%2F&amp;title=P4A%203.8.3%20is%20out%21" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F06%2F15%2Fp4a-3-8-3-is-out%2F&amp;title=P4A%203.8.3%20is%20out%21" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F06%2F15%2Fp4a-3-8-3-is-out%2F&amp;title=P4A%203.8.3%20is%20out%21" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F06%2F15%2Fp4a-3-8-3-is-out%2F&amp;title=P4A%203.8.3%20is%20out%21" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F06%2F15%2Fp4a-3-8-3-is-out%2F&amp;h=P4A%203.8.3%20is%20out%21" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2011/06/15/p4a-3-8-3-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>P4A 3.8.2 is out!</title>
		<link>http://fabrizioballiano.net/2011/05/22/p4a-3-8-2-is-out/</link>
		<comments>http://fabrizioballiano.net/2011/05/22/p4a-3-8-2-is-out/#comments</comments>
		<pubDate>Sun, 22 May 2011 12:53:43 +0000</pubDate>
		<dc:creator>Fabrizio Balliano</dc:creator>
				<category><![CDATA[P4A]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Things I do]]></category>

		<guid isPermaLink="false">http://fabrizioballiano.net/2011/05/22/p4a-3-8-2-is-out/</guid>
		<description><![CDATA[This is a minor release but it contains really a lot of great upgrades and fixes, here you&#8217;ve the changelog: - Zend Framework was updated to 1.11.6 - CKEditor was updated to 3.6.0 - jQuery UI was updated to 1.8.11 - requirejs was added - P4A_Dir_Source automatically sorts files - P4A_Dir_Source::setPageLimit() calling was disabled - [...]]]></description>
			<content:encoded><![CDATA[<p>This is a minor release but it contains really a lot of great upgrades and fixes, here you&#8217;ve the changelog:</p>
<blockquote><p>- Zend Framework was updated to 1.11.6<br />
- CKEditor was updated to 3.6.0<br />
- jQuery UI was updated to 1.8.11<br />
- requirejs was added<br />
- P4A_Dir_Source automatically sorts files<br />
- P4A_Dir_Source::setPageLimit() calling was disabled<br />
- P4A_Dir_Source&#8217;s page limit is now set to 0 (disabled)<br />
- autocomplete values are now sorted and unique<br />
- P4A_Field::getSource() method was added<br />
- p4a_load_js now uses requirejs<br />
- P4A_Field and P4A_Data_Fields now support the &#8220;datetime&#8221; type<br />
- P4A_Field and P4A_Data_Fields now support the &#8220;time&#8221; type<br />
- P4A_Object::dropImplement() now turns the action to lowercase<br />
- deprecated method P4A_Object::dropMethod() was removed<br />
- a javascript bug with P4A_DB_Navigator&#8217;s drag&#038;drop functionalities was solved<br />
- P4A_DB_Navigator now correctly supports source with non-default DSN
</p></blockquote>
<p><a href="http://sourceforge.net/projects/p4a/files/p4a/3.8.2">Download P4A 3.8.2</a></p>



Share/bookmark: 

	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F05%2F22%2Fp4a-3-8-2-is-out%2F&amp;title=P4A%203.8.2%20is%20out%21" title="Digg"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F05%2F22%2Fp4a-3-8-2-is-out%2F&amp;title=P4A%203.8.2%20is%20out%21" title="StumbleUpon"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F05%2F22%2Fp4a-3-8-2-is-out%2F&amp;t=P4A%203.8.2%20is%20out%21" title="Facebook"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F05%2F22%2Fp4a-3-8-2-is-out%2F&amp;title=P4A%203.8.2%20is%20out%21" title="Reddit"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F05%2F22%2Fp4a-3-8-2-is-out%2F&amp;title=P4A%203.8.2%20is%20out%21" title="Mixx"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F05%2F22%2Fp4a-3-8-2-is-out%2F&amp;title=P4A%203.8.2%20is%20out%21" title="del.icio.us"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F05%2F22%2Fp4a-3-8-2-is-out%2F&amp;title=P4A%203.8.2%20is%20out%21" title="Google"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F05%2F22%2Fp4a-3-8-2-is-out%2F&amp;title=P4A%203.8.2%20is%20out%21" title="Live"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a> 
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Ffabrizioballiano.net%2F2011%2F05%2F22%2Fp4a-3-8-2-is-out%2F&amp;h=P4A%203.8.2%20is%20out%21" title="NewsVine"><img src="http://fabrizioballiano.net/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a> 


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://fabrizioballiano.net/2011/05/22/p4a-3-8-2-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

