Running Zend Framework from within a folder with .htaccess rules?

OK, my previous answer was boneheaded. Trying a different tack A comment on this post notes this problem but that it can be handled by setting the baseUrl on the app's front controller I'd add an entry to application/configs/application. Ini (probably per environment) and then set it in Bootstrap That should allow the routing to ignore the project1 prefix and focus on the rest of the url Update I would set a key like application.

Ini something like: production settings. BaseUrl = "/project1 If this varies on a per-environment basis, then you could add an entry per-environment: development:production settings. BaseUrl = "/some/local/url/prefix/project1 Then in application/Bootstrap.

Php add a method like: protected function _initBaseUrl() { $options = $this->getOptions(); $baseUrl = isset($options'settings''baseUrl')? $options'settings''baseUrl' : null; // null tells front controller to use autodiscovery, the default $this->bootstrap('frontcontroller'); $front = $this->getResource('frontcontroller'); $front->setBaseUrl($baseUrl); } That oughtta do it.

OK, my previous answer was boneheaded. Trying a different tack. A comment on this post notes this problem but that it can be handled by setting the baseUrl on the app's front controller.

I'd add an entry to application/configs/application. Ini (probably per environment) and then set it in Bootstrap. That should allow the routing to ignore the /project1/ prefix and focus on the rest of the url.

Update I would set a key like application. Ini, something like: production settings. BaseUrl = "/project1" If this varies on a per-environment basis, then you could add an entry per-environment: development:production settings.

BaseUrl = "/some/local/url/prefix/project1" Then in application/Bootstrap. Php, add a method like: protected function _initBaseUrl() { $options = $this->getOptions(); $baseUrl = isset($options'settings''baseUrl')? $options'settings''baseUrl' : null; // null tells front controller to use autodiscovery, the default $this->bootstrap('frontcontroller'); $front = $this->getResource('frontcontroller'); $front->setBaseUrl($baseUrl); } That oughtta do it.

I understand the issue per the comment from Eliasdx and I believe you have the same idea here. If you want to suggest a way to access and modify the baseUrl() here I'll go ahead and accept this as I do believe you're correct. – Artsemis Apr 14 at 17:07 Updated above to include code sample.

– David Weinraub Apr 15 at 0:41 Looks pretty smooth to me. Thanks :) – Artsemis Apr 15 at 4:10 My pleasure. Glad it helped.

;-) – David Weinraub Apr 15 at 4:21.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions