最終更新:2011-09-16 (金) 17:57:34 (4599d)  

Zend_Controller
Top / Zend_Controller

http://framework.zend.com/manual/ja/zend.controller.html

Zend_Controller_Front? は フロントコントローラ パターンを実装しており、 すべてのリクエストをいったんフロントコントローラで受け取った上でその URL にもとづいたアクションコントローラに配送します。

mod_rewrite

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR] #サイズのあるファイルが存在
RewriteCond %{REQUEST_FILENAME} -l [OR] #シンボリックリンクが存在
RewriteCond %{REQUEST_FILENAME} -d      #ディレクトリが存在
RewriteRule ^.*$ - [NC,L]               #
RewriteRule ^.*$ index.php [NC,L]       #
  • NC - nocase
  • L - last rule
  • 正規表現
    • ^ - Start-of-line
    • $ - End-of-line anchor
    • . - Any single character
    • * - 0 or N occurrences of the preceding text (N > 0)

関連