これが私の場合です。次のスクリプトがあります。
<?php
// ... other code ...
switch($_GET['request']) {
case "firstPage":
$file = APP_ROOT. "pages/firstPage.php";
$hndle = fopen($file,"r");
$right_column = fread($hndle, filesize($file));
fclose($hndle);
break;
case "secondPage":
$file = APP_ROOT. "pages/secondPage.php";
$hndle = fopen($file,"r");
$right_column = fread($hndle, filesize($file));
fclose($hndle);
break;
}
}
?>
<div id="right_column">
<?php echo $right_column;?>
</div>
// ... other code ...
$_GET['request'] の値に応じて、変数 $right_column に php ファイルの内容を割り当てています。次に、最後の div でその変数をエコーします。firstPage.php ファイルと secondPage.php ファイルには、html と php のコードが混在しています。Zend の「部分」のようなソリューションを探します。ありがとう