Web

Windowsの場合

httpd.confで設定

Zend Framework自体

C:\php\includes\Zend

Apache上のルートディレクトリ

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\.htaccess
RewriteEngine on
RewriteBase /
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\index.php
<?php
define('APP', '../application');
require_once 'Zend/Controller/Front.php';

$front = Zend_Controller_Front::getInstance();
$front->setControllerDIrectory(APP.'/controllers');
$front->dispatch();

作成したフォルダーの置き場所

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\application

Controllerの場所

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\application\controllers

Modelの場所

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\application\models

Viewの場所

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\application\views\filters
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\application\views\helpers
C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\application\views\scripts

Controller->index/Action->indexの場合

Controller

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\application\controllers\indexAction.php

Action

C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\application\views\scripts\index\index.phtml

Last-modified: 2012-03-12 (月) 17:05:28 (166d)