<?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>Mon, 20 May 2013 04:07:31 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Alexander Netkachev's Blog: How to use Zend Framework Controller/Action approach?]]></title>
      <guid>http://www.phpdeveloper.org/news/7244</guid>
      <link>http://www.phpdeveloper.org/news/7244</link>
      <description><![CDATA[<p>
Continuing on from an <a href="http://www.phpdeveloper.org/news/7225">earlier discussion</a> about the Zend Framework and form submission and handling, <i>Alexander Netkachev</i> has <a href="http://www.alexatnet.com/Blog/Index/2007-02-08/how-to-use-zend-framework-controller-action-approach">come back</a> to talk a bit more about the Controller/Action approach.
</p>
<blockquote>
I have a few discussions here about the <a href="http://www.alexatnet.com/Blog/Index/2007-02-06/controller-action-versus-folder-page">question</a> I opened a couple of days ago:  how the standard form processing is related to the Controller/Action idea and how developers that are creating sites with the standard Folder/Page approach can use Zend Framework's Controller/Action approach.
</blockquote>
<p>
What <a href="http://www.alexatnet.com/Blog/Index/2007-02-08/how-to-use-zend-framework-controller-action-approach">came out</a> of the discussions were three points - use the Controller/Action model to your advantage, use your own forms but use RewriteRouter to make them work, or use the Folder/Page mentality instead.
</p>]]></description>
      <pubDate>Thu, 08 Feb 2007 09:57:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ligaya Turmelle's Blog: Quick snip (or Zend Framework in a Subdirectory)]]></title>
      <guid>http://www.phpdeveloper.org/news/6835</guid>
      <link>http://www.phpdeveloper.org/news/6835</link>
      <description><![CDATA[<p>
As <i>Ligaya Turmelle</i> discovered when trying to work with the <a href="http://framework.zend.com">Zend Framework</a> in a subdirectory, it doesn't want to play nice. After poking around a bit, though, she discovered a solution in the Zend_Controller_RewriteRoute package.
</p>
<blockquote>
I am using a subfolder of web root to play with the ZF and was having troubles getting my controller to go to the correct place. After considering hacking both the Apache doc root and the actual Zend_Controller_Router code and writing a patch, I stumbled on the answer - Zend_Controller_RewriteRouter.
</blockquote>
<p>
She <a href="http://www.khankennels.com/blog/index.php/archives/2006/12/06/quick-snip/">includes the quick code</a> that acts as a patch for the framework, letting it know that the directory it should be rewriting to isn't the root of the domain.
</p>]]></description>
      <pubDate>Wed, 06 Dec 2006 09:44:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Alexander Netkachev's Blog: Using Zend_Controller in subfolder]]></title>
      <guid>http://www.phpdeveloper.org/news/6368</guid>
      <link>http://www.phpdeveloper.org/news/6368</link>
      <description><![CDATA[<p>
One of the most asked questions when it comes to using the Zend Framework is "how can I use it in a subfolder?" Everything behaves well when it's at the document root of the server it's on, but strange things start happening when it's anywhere below that. There's been server people that have posted solutions, and another can be added to them - <a href="http://www.alexatnet.com/Blog/Index/2006-09-26/using-zend_controller-in-subfolder">this new post</a> from <i>Alexander Netkachev</i>.
</p>
<blockquote>
<p>
This question I had heard many times and now I have a few minutes to write down the answer so that everybody who stuck in the similar trouble could quickly resolve the issue. Who works with Zend Framework, most likely, have read the "Zend_Controller / Getting Started" Zend Framework manual article, which explains how to use Zend_Controller in the root folder of the web server. But it does not answer on the "How to run my Zend Framework application in a subfolder of the web server document folder?" question and I propose you my solutions. 
</p>
<p>
First is rather a hack then a recommended solution, but with it you can start the applications and examples that use standard router. The second is neater but it depends on the Zend_Controller_RewriteRouter class.
</p>
</blockquote>
<p>
The first method makes some changes to the default routing code itself (the hack) to make it no longer just use the REQUEST_URI, but to look at more of the URL to see if subdirectories exist. OF course, the more preferred way to go, and just as simple of an option, is <a href="http://www.alexatnet.com/Blog/Index/2006-09-26/using-zend_controller-in-subfolder">using the framework itself</a> to change the RewriteRouter options to allow for the subdirectory.
</p>]]></description>
      <pubDate>Wed, 27 Sep 2006 07:33:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Nick Lo's Blog: RewriteRouter and Zend_Config play together]]></title>
      <guid>http://www.phpdeveloper.org/news/5815</guid>
      <link>http://www.phpdeveloper.org/news/5815</link>
      <description><![CDATA[<p>
<i>Nick Lo</i> (author of the now infamous <a href="http://www.phpdeveloper.org/news/5807">Mr Dizzy</a> story on getters/setters in constructors) brings us another new tutorial for working with the Zend Framework, getting the RewriteRouter and Zend_Config to <a href="http://www.ingredients.com.au/nick/2006/07/18/rewriterouter-and-zend_config-play-together/">play nicely together</a>.
</p>
<blockquote>
While getting the hang of the <a href="http://framework.zend.com/manual/en/zend.controller.rewriterouter.html">Zend_Controller_RewriteRouter</a>, which is now included in <a href="http://framework.zend.com/">Zend Framework 0.1.5</a>, I was adding the routes in my index.php (bootstrap) file and wondered if there was any way of storing them elsewhere. It is possible to loop over Zend_Controller_RewriteRouter::addRoutes() but the method I will describe here is based on some recent updates to Zend_Controller_RewriteRouter by its author <a href="http://www.linkedin.com/in/martel">Michael Minicki</a>.
</blockquote>
<p>
<a href="http://www.ingredients.com.au/nick/2006/07/18/rewriterouter-and-zend_config-play-together/">His example</a> shows the creation of some simple routes with this new functionality - creating the route definitions, loading them in, creating the object for them, and passing it into the front controller. It's as simple as that!
</p>]]></description>
      <pubDate>Tue, 18 Jul 2006 06:07:38 -0500</pubDate>
    </item>
  </channel>
</rss>
