hogehogeプロジェクトをfrontendアプリケーションとして生成する場合。生成したいディレクトリ内で以下を実行します。
symfony init-project hogehoge
symfony init-app frontend
なお、SymfonyはPHP5で動作するので.phpのマッピングがPHP5になっていることが前提です。
次にパーミッション設定をします。
cacheディレクトリへ書き込みを行いますので、cacheディレクトリにApacheユーザーまたはNETWORKユーザー(IISの場合)に書き込み権限を付与します。
また、トップページを描画するには、apps/frontend/modules/defaultに以下のファイルを配置します。
actions/actions.class.php
templates/indexSuccess.php
設定項目
apps/frontend/config/view.yml タイトル類
apps/frontend/config/settings.yml
IISだと.htaccessによるrewriteが利かないので、以下の設定を行う。
prod:
.settings:
no_script_name: on
を
prod:
.settings:
no_script_name: off
にする。
Congratulations!
If you see this page, it means that the creation of your symfony project on this system was successful.
You can now create your model and customize default templates.
となればOK!プロジェクトの作成を開始しよう。