<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://mirmodynamics.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Mirmo Dynamics - Tag - route  - Comments</title>
  <link>http://mirmodynamics.com/</link>
  <atom:link href="http://mirmodynamics.com/feed/tag/route/rss2/comments" rel="self" type="application/rss+xml"/>
  <description>Rien de grand ne se fit jamais sans enthousiasme.</description>
  <language>en</language>
  <pubDate>Tue, 18 Nov 2008 12:26:30 +0100</pubDate>
  <copyright>2003-2008 &amp;copy; Geoffrey Bachelet</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
    
    <item>
    <title>Extending Zend_Controller_Router_Route: the singleton problem. - Geoffrey</title>
    <link>http://mirmodynamics.com/post/2007/11/05/Extending-Zend_Controller_Router_Route%3A-the-singleton-problem#c7364</link>
    <guid isPermaLink="false">urn:md5:4f62b17608a234907b1b8c6e13baca57</guid>
    <pubDate>Mon, 17 Dec 2007 13:30:24 +0100</pubDate>
    <dc:creator>Geoffrey</dc:creator>
    
    <description>&lt;p&gt;Kaloyan: well that would work for sure, but that is actually not the point of this article :-) This issue will (hopefuly) be solved with php 5.3 and late static binding, which will allow for such a behavior via the static keyword. (see JMF's comment)&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>Extending Zend_Controller_Router_Route: the singleton problem. - Kaloyan</title>
    <link>http://mirmodynamics.com/post/2007/11/05/Extending-Zend_Controller_Router_Route%3A-the-singleton-problem#c7355</link>
    <guid isPermaLink="false">urn:md5:d6c386674e8745eb51df8692976cb640</guid>
    <pubDate>Sat, 15 Dec 2007 15:51:06 +0100</pubDate>
    <dc:creator>Kaloyan</dc:creator>
    
    <description>&lt;p&gt;Can't we just change the getInstance() method with a factory() method instead ? We will place this factory() in the parent abstract class, so all &amp;quot;routes&amp;quot; should be generated from it. This factory method will keep one instance per class, so when asked twice or more times for an instance of a class previously loaded, it will return the one it has stored.&lt;/p&gt;


&lt;p&gt;To do this, we got to have a common abstract class that all routes will extend. In this abstract class we will place this factory() method like this:&lt;/p&gt;


&lt;p&gt;Zend_Controller_Router_Route_Abstract::factory('Xend_Controller_Router_Route_Modified');&lt;/p&gt;


&lt;p&gt;What do you think ?&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>Extending Zend_Controller_Router_Route: the singleton problem. - Geoffrey</title>
    <link>http://mirmodynamics.com/post/2007/11/05/Extending-Zend_Controller_Router_Route%3A-the-singleton-problem#c7296</link>
    <guid isPermaLink="false">urn:md5:79d12db1bb155cedb9290421a71b42ea</guid>
    <pubDate>Tue, 20 Nov 2007 11:09:14 +0100</pubDate>
    <dc:creator>Geoffrey</dc:creator>
    
    <description>&lt;p&gt;oh good news :-)&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>Extending Zend_Controller_Router_Route: the singleton problem. - JMF</title>
    <link>http://mirmodynamics.com/post/2007/11/05/Extending-Zend_Controller_Router_Route%3A-the-singleton-problem#c7293</link>
    <guid isPermaLink="false">urn:md5:68d86c0226b1583dda3e402b36e43327</guid>
    <pubDate>Mon, 19 Nov 2007 22:26:14 +0100</pubDate>
    <dc:creator>JMF</dc:creator>
    
    <description>&lt;p&gt;This will be possible in PHP 5.3 with the Late Static Binding (cf. &lt;a href=&quot;http://ds-o.com/archives/53-Late-Static-Binding-in-PHP.html&quot; title=&quot;http://ds-o.com/archives/53-Late-Static-Binding-in-PHP.html&quot; rel=&quot;nofollow&quot;&gt;http://ds-o.com/archives/53-Late-St...&lt;/a&gt;)&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>Extending Zend_Controller_Router_Route: the singleton problem. - Jani</title>
    <link>http://mirmodynamics.com/post/2007/11/05/Extending-Zend_Controller_Router_Route%3A-the-singleton-problem#c7260</link>
    <guid isPermaLink="false">urn:md5:3f66718d02bde17e433a08769d2a89b3</guid>
    <pubDate>Sat, 10 Nov 2007 20:15:42 +0100</pubDate>
    <dc:creator>Jani</dc:creator>
    
    <description>&lt;p&gt;Rather than doing that, perhaps you should just define the route to use in the bootstrap with setRoute. That has worked pretty well for me.&lt;/p&gt;


&lt;p&gt;Something along the lines of...&lt;br /&gt;
Zend_Controller_Front::getInstance()-&amp;gt;getRouter()-&amp;gt;setRoute('default', new Route_Win());&lt;/p&gt;</description>
  </item>
      
</channel>
</rss>