<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 08 Jan 2009 03:42:12 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPImpact Blog: Zend Framework: Encapsulating routes into modules]]></title>
      <guid>http://www.phpdeveloper.org/news/10757</guid>
      <link>http://www.phpdeveloper.org/news/10757</link>
      <description><![CDATA[<p>
On the PHP::Impact blog, <i>Federico Cargnelutti</i> has <a href="http://phpimpact.wordpress.com/2008/08/03/zend-framework-encapsulating-routes-into-modules/">another helpful tip</a> to use in Zend Framework applications - encapsulating routes into modules.
</p>
<blockquote>
You can encapsulate routes into modules by <a href="http://phpimpact.wordpress.com/2008/07/15/improving-the-performance-of-zend_controller/">splitting the routes</a> into different files and extending the Zend_Controller_Router_Rewrite class. But, what if you want to use the <a href="http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.redirector">Redirector helper</a> to set a URL based on a registered route?
</blockquote>
<p>
His method creates the routing instance and overwrites the default getRoute method with a custom one in the extending class.
</p>]]></description>
      <pubDate>Mon, 04 Aug 2008 13:47:35 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Greg Beaver's Blog: PHP namespaces become much better (Derick take note)]]></title>
      <guid>http://www.phpdeveloper.org/news/10462</guid>
      <link>http://www.phpdeveloper.org/news/10462</link>
      <description><![CDATA[<p>
<i>Greg Beaver</i>, noting some issues that <i>Derick Rethans</i> had <a href="http://greg.chiaraquartet.net/exit.php?url_id=655&entry_id=193">pointed out</a> about namespace support for upcoming PHP versions, has <a href="http://greg.chiaraquartet.net/archives/193-PHP-namespaces-become-much-better-Derick-take-note.html">posted about</a> a patch he submitted to solve the problem simply.
</p>
<p>
The issue <i>Derick</i> pointed out:
</p>
<blockquote>
In PHP 5.3 this would alias the class Interval in the namespace PEAR::Date to the class Interval. For now, this code would work just fine. However, if PHP would introduce a class "Interval" at some point in the future (and PHP can do this as it <a href="http://greg.chiaraquartet.net/exit.php?url=aHR0cDovL3d3dy5waHAubmV0L21hbnVhbC9lbi91c2VybGFuZG5hbWluZy5ydWxlcy5waHA=&entry_id=193">owns the global namespace</a>) then the above code would suddenly stop working.
</blockquote>
<p>
<i>Greg</i>'s patch makes it possible to "override" the internal class if need be, making it so that code currently working wouldn't break. All it takes is to "use" is like you normally would and and the magic happens behind the scenes.
</p>]]></description>
      <pubDate>Mon, 23 Jun 2008 11:19:27 -0500</pubDate>
    </item>
  </channel>
</rss>
