<?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>Let&#039;s Make It Go &#187; Programming</title> <atom:link href="http://www.letsmakeitgo.com/blog/category/programming/feed/" rel="self" type="application/rss+xml" /><link>http://www.letsmakeitgo.com/blog</link> <description>Making web sites work since 1996.  Duh.</description> <lastBuildDate>Thu, 21 Jul 2011 19:07:42 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Magento &#8211; Echo the URL of a CMS Page in PHP</title><link>http://www.letsmakeitgo.com/blog/2011/07/magento-echo-the-url-of-a-cms-page-in-php/</link> <comments>http://www.letsmakeitgo.com/blog/2011/07/magento-echo-the-url-of-a-cms-page-in-php/#comments</comments> <pubDate>Mon, 11 Jul 2011 18:40:55 +0000</pubDate> <dc:creator>Clay Simmons</dc:creator> <category><![CDATA[Magento]]></category> <category><![CDATA[Programming]]></category><guid
isPermaLink="false">http://www.letsmakeitgo.com/blog/?p=61</guid> <description><![CDATA[Just a quickie post that I hope helps a few people.  I wasn&#8217;t able to find anything quickly. So, in my template header.phtml file, I am setting up the navigation manually b/c the client wants all this fancy multi-column drop &#8230; <a
href="http://www.letsmakeitgo.com/blog/2011/07/magento-echo-the-url-of-a-cms-page-in-php/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Just a quickie post that I hope helps a few people.  I wasn&#8217;t able to find anything quickly.<br
/> <span
id="more-61"></span><br
/> So, in my template header.phtml file, I am setting up the navigation manually b/c the client wants all this fancy multi-column drop down nav stuff.  I obviously don&#8217;t want hard-coded URLs in the nav b/c the {{base_url}} of the site will change when the site goes live.  Plus, we might change URLs for SEO purposes down the line.</p><p>WordPress gives us the ability to do this with a simple:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$page_or_post_id</span><span style="color: #009900;">&#41;</span></pre></div></div><p>To do the same from your Magento template file, do this:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">Mage<span style="color: #339933;">::</span><span style="color: #004000;">Helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cms/page'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getPageUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$page_id</span><span style="color: #009900;">&#41;</span></pre></div></div>]]></content:encoded> <wfw:commentRss>http://www.letsmakeitgo.com/blog/2011/07/magento-echo-the-url-of-a-cms-page-in-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>TextMate FTP SSH Bundle Snow Leopard FIX</title><link>http://www.letsmakeitgo.com/blog/2010/01/textmate-ftp-ssh-bundle-snow-leopard-fix/</link> <comments>http://www.letsmakeitgo.com/blog/2010/01/textmate-ftp-ssh-bundle-snow-leopard-fix/#comments</comments> <pubDate>Thu, 14 Jan 2010 03:01:35 +0000</pubDate> <dc:creator>Clay Simmons</dc:creator> <category><![CDATA[Programming]]></category><guid
isPermaLink="false">http://www.letsmakeitgo.com/blog/?p=35</guid> <description><![CDATA[I use the FTP/SSH bundle for TextMate a lot and have gotten quite used to it.  It is quirky, but it has become an invaluable part of my development process.  When I upgraded to Snow Leopard, the bundle stopped working. &#8230; <a
href="http://www.letsmakeitgo.com/blog/2010/01/textmate-ftp-ssh-bundle-snow-leopard-fix/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I use the FTP/SSH bundle for TextMate a lot and have gotten quite used to it.  It is quirky, but it has become an invaluable part of my development process.  When I upgraded to Snow Leopard, the bundle stopped working.<span
id="more-35"></span></p><p>There are two fixes you need to apply.</p><h3>The first fix</h3><p>The first fixes problems if you&#8217;re getting errors like:</p><p>PHP Notice: Undefined index TM_PROJECT_FILEPATH<br
/> PHP Notice: Undefined index TM_DIRECTORY</p><p>You need to alter your /private/etc/php.ini file.  If you don&#8217;t have one, just copy the /private/etc/php.ini.default file to /private/etc/php.ini.  Look for this line:</p><p>variables_order = &#8220;GPCS&#8221;</p><p>Change it to:</p><p>variables_order = &#8220;GPCSE&#8221;</p><h3>The second fix</h3><p>Snow Leopard ships with PHP 5.3, which, in its default configuration, doesn&#8217;t recognize the $_ENV superglobal.  You have to call getenv() instead.  Since the FTP/SSH bundle relies heavily on the $_ENV variable, it breaks under Snow Leopard.  Luckily, there&#8217;s an easy fix.</p><h3>The Solution</h3><p>Open up TextMate and open the following folder:</p><pre>/Users/your_username/Library/Application Support/TextMate/Pristine Copy/Bundles/FTP:SSH.tmbundle/</pre><p>Use shift+cmd+f to do a global find/replace. For find, enter this:</p><pre>\$_ENV\['([A-Z_]+)'\]</pre><p>For replace, enter this:</p><pre>getenv('$1')</pre><p>Make sure you check the &#8220;Regular expression&#8221; box and click Find and then Replace All.</p><p>That&#8217;s it.  The bundle should start working properly.</p> ]]></content:encoded> <wfw:commentRss>http://www.letsmakeitgo.com/blog/2010/01/textmate-ftp-ssh-bundle-snow-leopard-fix/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> </channel> </rss>
<!-- Served from: www.letsmakeitgo.com @ 2011-12-15 04:49:38 by W3 Total Cache -->
