{
parent::beforeFilter();
+ // PC用URLアクセスはエラー
+ if (!isset($this->params["prefix"])) {
+ $this->cakeError("errorPcView");
+ exit;
+ }
// 入力データの文字コード変換
@array_walk_recursive($this->data, "convertEncodeSjis2Utf8");
}
--- /dev/null
+<?php
+class AppError extends ErrorHandler {
+
+ function errorPcView($params) {
+ $this->controller->layout = "mobile_default";
+
+ $this->controller->set(array(
+ 'name' => __('PC View', true),
+ 'message' => "For PC browser View",
+ 'base' => $this->controller->base
+ ));
+
+ $this->_outputMessage('errorPcView');
+ }
+
+}
--- /dev/null
+<h2><?php echo $name; ?></h2>
+<p class="error">
+ <strong><?php __('Error'); ?>: </strong>
+ <?php echo sprintf(__("The requested address was %s .", true), "<strong>{$message}</strong>")?>
+</p>
\ No newline at end of file