一個cakePHP 核心內設定多個應用 Config multiple sites in one CakePHP core

05Oct09
tree

tree

上一張圖解釋了大部分連官方 cookbook 都很少提及旳設定
只要在 app 資料夾的同層建立一個新的資料夾, 再用 bake 在資料夾之內建立project

假設cake 資料夾放在webroot 之下, mooncake 的存取路徑是: http://localhost/cake/mooncake
而 http://localhost/cake 預設是 app 資料夾內的檔案

而我通常會再做多一步, 在 apache 的vhosts 內將 http://mooncake.localhost/ 的 DocumentRoot 指到 WEBROOT/cake/mooncake/webroot
再改windows 的 host file, 以方便開發



No Responses Yet to “一個cakePHP 核心內設定多個應用 Config multiple sites in one CakePHP core”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.