Using Zend_Controller in subfolder
p. ! bq. 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. 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. Alex coverers the “How” very well but is a little short on the “why”. Even so, it’s a short read but a good one; especially if this problem is a problem you have run up against. p. =C= p. p. p. p. p. p.


2 comments to “Using Zend_Controller in subfolder”
November 12th, 2010 at 7:25 pm
First solution a hack, second depends on Zend_Controller_Router? I can’t read Alex’s article now. So I’m not sure we are talking about the same ‘subfolder’. But I use <a href="" title="Zend Framework projects in subfolders">Zend Framework projects in subfolders</a> the easy way.
November 12th, 2010 at 8:09 pm
Oops, just wanted to help out. The link is http://www.sitegrind.nl/zend-framework/use-in-subfolder/