... or you could of course create a configuration file that contains a development and a production section, and just change the section that Zend_Config reads in the bootstrap file. See http://framework.zend.com/manual/en/zend.config.adapters.ini.html#zend.config.adapters.ini.example.usingfor an example :)
Greets Tobias 2007/8/13, Alex Netkachov <[EMAIL PROTECTED]>: > > It is better to use url() view helper for creating URLs in view > scripts. IT automatically adds current Base URL and you do not need to > manage it. > If you do not like url helper, you have to use application wide > constant and use it in views just like you use $tableName. > > Sincerly, > Alex > > On 8/13/07, Kexiao Liao <[EMAIL PROTECTED]> wrote: > > > > When I try to deploy Zend Framework Application from Development site to > > Production site, the RewriteBase value from .htaccess file make > deployment > > much hard to do. Following is the example: > > in my .htaccess file I declare a RewriteBase value as DevelopmentBase, > and > > in my index.phtml script template file, I use that RewriteBase value in > the > > following href attribue: > > "href="/DevelopmentBase/grid/show/table/<?= $tableName ?>" >" > > > > When I try to deploy my Zend Framework Application to the Production > site, I > > have to use ProductionBase as RewriteBase value in the .htaccess file, > so > > the RewriteBase value has been changed from Development to Production, > then > > I have to change all the RewriteBase value in all the template script > files. > > For this kind of case, Is there a good solution to deploy application to > the > > production site? > > -- > > View this message in context: > http://www.nabble.com/Deploy-Zend-Framework-Application-tf4261581s16154.html#a12127371 > > Sent from the Zend Framework mailing list archive at Nabble.com. > > > > > > > -- > http://www.alexatnet.com/ - consulting, blog, articles and support for > PHP, ZF, JavaScript and web development. >
