58日目:フロントコントローラのアドレスを省略
「53日目:パーマリンクを追加しようとして」で、
固定リンク : <?php echo url_for( 'episode/show?id=' .$episode->getId(), $absolute = true) ?>
としたら、アドレスに index.phpと表示されてイマイチと書いたのですが、その解決方法が分かりました。ルーティングの設定じゃなくて、ちゃんと専用の設定場所が、settings.ymlにありました。
/var/www/podtv/apps/frontend/config/settings.yml prod: .settings: enabled_modules: [ default, sfGuardAuth, sfGuardGroup, sfGuardUser, sfGuardPermission, sfGuardModule] no_script_name: on # Enable the front controller name in generated URLs check_lock: on # Enable the application lock system triggered by the clear-cache task. Set to on to have all requests redirected to the $sf_symfony_data_dir/w eb/arrors/unavailable.php page during the clear-cache process.
no_scriput_nameがそれです。徹底攻略本の P77に書いてありました。
しかし、all:に設定してもなぜか動いてくれないので、prod:に書きました。
で、その結果がこれ。
よしよし。うまくいったぞっと。