开发者

Zend Framework Bootstrap with Layout?

开发者 https://www.devze.com 2023-03-25 22:30 出处:网络
So, I have a problem and I have been searching forever about how to do this. I want to have several project directories on my shared host but I want to be able to hit the public directory when someon

So, I have a problem and I have been searching forever about how to do this.

I want to have several project directories on my shared host but I want to be able to hit the public directory when someone types in the root directory for that project. I can't edit the httpd.conf to set up virtual hosts so I have been looking for alternative solutions.

Account Structure

/public_html

.../Project1

....../application

....../public

I stumbled on http://www.mauriciocuenca.com/blog/2009/03/two-or-more-zend-framework-projects-on-a-shared-host/ and followed the steps (modifying some stuff since it is outdated)

And I can get a single view to show up. The problem is, if I create a layout I can't get anything but the normal view to display. I think I am just 开发者_开发百科missing a simple hook up.

Is the above solution the best for my situation?


You problem is not 100% clear, I can't figure out that you want to serve one site per shared host directory or all site from the same directory.

Although you can't edit httpd.conf, you can use .htaccess file. While using Zend you already use .htaccess (located in public dir). So you can write rules to make url based redirections.

0

精彩评论

暂无评论...
验证码 换一张
取 消