douchui4459 2011-09-06 17:01
浏览 27
已采纳

你在哪里放置Zend Framework的所有文件?

I completed the quickstart tutorial, but I feel really unclear on a few things. I started the guide initially expecting everything to be on my remote server, but it actually seems to be a guide for a local setup. I have everything on my server, and I have the hosts file on my local computer routing to the server, for ex. this is the entry in my hosts file server-ip quickstart.local.

1) Currently, I have everything beneath public_html. Where should I put all the Zend files (bin, demos, incubator, etc..)? www/public_html/[zend-files],www/public_html/quickstart/

2) Where do I put the quickstart (project) folder? Am I supposed to create an index.php that routes to the public folder in the project folder? At the moment, it is at public_html/quickstart/.

I feel silly and embarrassed for asking, because I feel like this is something really obvious.

  • 写回答

2条回答 默认 最新

  • douyudouchao6779 2011-09-06 17:15
    关注

    Actually, you'll need only the Zend folder, which is the library itself.

    On the public_html you need to put only the files located in the public folder of your project.

    Folders like application and library should stay out of public_html.

    For example

    /home/my_project/public_html (public folder from zend)

    /home/my_project/private (the other files, like application and library)

    Instead of put the Zend library inside your project library folder, you can put it on the php include_path.

    The second option, maybe the best, is to configure your virtual hosts and set the public folder (application public folder) as the root folder for your domain quickstart-local

    So, you will end up with /home/my_project/public as your root folder and /home/my_project/application as your private folder.

    You'll need to setup your index.php and application.ini with the appropriated paths.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 什么设备可以研究OFDM的60GHz毫米波信道模型
  • ¥15 不知道是该怎么引用多个函数片段
  • ¥15 pip install后修改模块路径,import失败,需要在哪里修改环境变量?
  • ¥15 爬取1-112页所有帖子的标题但是12页后要登录后才能 我使用selenium模拟登录 账号密码输入后 会报错 不知道怎么弄了
  • ¥30 关于用python写支付宝扫码付异步通知收不到的问题
  • ¥50 vue组件中无法正确接收并处理axios请求
  • ¥15 隐藏系统界面pdf的打印、下载按钮
  • ¥15 基于pso参数优化的LightGBM分类模型
  • ¥15 安装Paddleocr时报错无法解决
  • ¥15 python中transformers可以正常下载,但是没有办法使用pipeline