h2ospace

CakePHPã?§ HTML5å¯?å¿?ã??ã??ã??ã??ã?¯ã?ªã??ã??ã?®ã??ï??

2009-12-14 01:17:40

CakePHPã??å??å??ä¸?ã?§ã??ã??ã?ªã??ã?©ã??ã??ã?£ã?¬ã??ã?¸ã??ã?¦ã??ã??ã??ã?®ã?®ã??ã??ã??ã??ã?¡æ??è¦?ã??ã?¤ã??ã??ã?ªã??ã??ã??ã??ç?¬è?ªã?®ã?ªã??ã?¡ã??ã?£ã?¦ã??ã?¬ã??ã??ã?¯ã??ã?¯ã?°ã??ã??ä?¿ã?£ã?¦ã??ã??ã?®ã?§ã??ã??ã??ä??å??次ã?®ã??ã??ã?ªæ?¸ç±?ã?®ã??ã??ã??ã?§ã??ã??ã??ã?¶æ??è¦?ã??ã?¤ã??ã??ã??ã??ã??ã??ã?ªã??ã?¨ã??ç§?è¡?ã??å?ºæ??ã??ã??ã??

CakePHP ã??ã?±ã??ã??ã?ªã??ã?¡ã?¬ã??ã?? (Pocket Reference)
æ?ªå??ä??ç¤?ã??ã??ã??ã?ªã??ã??ã?£ã?? å?¡ç?° ä??å?¸
æ??è¡?è©?è??ç¤? ( 2008-06-18 )
ISBN: 9784774135038
ã??ã??ã??ã??度:ã?¢ã??ã??ã??ã??ã??ã??ã??度

CakePHPå??åº?å??é??
ã?¤ã??ã?¸ã??ã??ã??ã??
ç¿?æ??ç¤? ( 2008-08-29 )
ISBN: 9784798117171
ã??ã??ã??ã??度:ã?¢ã??ã??ã??ã??ã??ã??ã??度

ã??ã?¦ã??ã??ã??ã?§ã?ªã??ã??ã??ã?¨ã?¤ä??ã?£ã?¦ã?¿ã??ã??ã??ã?ªã?¨æ??ã??ã?¤ã?¤ã??æ??è§?ã?ªã?®ã?§ã??ã?¡ã??ã??話é¡?ã?® HTML5ã?§ä??ã??ã??ã??ã?ªã?¨æ??ã?£ã??ã?®ã?§ã??ã??ã??CakePHPã?®HTMLã??ã??ã??ã??ã??å??ã??å?ºã??HTMLã?¯ã??XHTMLã??å?ºæ?¬ã??

HTML5å¯?å¿?ã?®ã??ã??ã??ã??ã??é??å¸?ã??ã??ã?¦ã??ã?ªã??ã??ã?ªï??ã??ã?¨ã??ã??ã??ã??ã?? CakePHPã?® Bakeryã?ªã?©ã??è¦?ã??ã?¦ã?¿ã??ã?®ã?§ã??ã??ã??ã??ã??ã?ªã??ã?®ã?§ã??ã??ã??ï??

ã??ã??ã??ã??ã?ªã??ã?¨ã?ªã??ã?¨ã??ã??ã??ã??æ¬?ã??ã??ã?ªã??ã?®ã??人æ??ã?£ã?¦ã??ã?®ã?§ã??è?ªå??ã?§ã?¤ã??ã?£ã?¦ã?¿ã??ã??ã??ã?¨æ??ã?£ã?¦ã?¿ã??ã??ã??ã??

ã?§ã??次ã?®ã??ã??ã?ªã??ã??ã??ã??ã??ä??ã?£ã?¦ /app/view/helper/html5.phpã?¨ã??ã?¦æ??ç´?ã??

class Html5Helper extends Helper {
	/**
	 * Generate charset tag
	 *
	 * @access public
	 */
	function charset() {
		return '';
	}
}

ã??ã??ã??ã??/app/views/layouts/html5.ctpã?¨ã??ã?¦ã??次ã?®ã??ã??ã?ªã??ã??ã??ã?¬ã??ã??ã??ä??æ??

<!DOCTYPE html>
<html>
<head>
<?php echo $html5->charset(); ?>
<title><?php echo $title_for_layout; ?></title>
<?php echo $html->css('reset'); ?>
<?php echo $scripts_for_layout; ?>

<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<?php $session->flash(); ?>
<?php echo $content_for_layout; ?>
</body>
</html>

ã?¡ã?ªã?¿ã??ã??ã??reset.cssã??ã?¯æ¬¡ã?®å?´æ??ã??ã??ã??ã?¦ã??ã??ã??ã??ã??ã??ã?¨è?¯ã??ã??ã??ã?§ã??ã??
http://code.google.com/p/html5resetcss/

ã?¨ã??ã??ã??ã?¨ã?§ã??ã??ã?¨ã??ã??charsetã??å??ã??å?ºã??ã??ã??ã??ã?®ã??ã??ã??ã??ã??ã??ã??ã??ã??æ?¬æ??ã?®HTMLã??ã??ã??ã??ã?¯ã??ã?©ã?¡ã??ã?¿ã??å??ã?£ã?¦ã??ä??æ??ã?®charsetã??å??ã??å?ºã??ã??ã??ã??ã?§ã??ã??ã??ã??ã?§ã??ã??ã??ã??ã??ã??ã??ã??å®?å?¨ç§?æ¤?ã?¯ã??ã?ªã??é??ã??é??ã??ã?ªã??ã??ã?¨ã??ã??ã??ã??ã??è?ªå??ã??ä?¿ã??ã??ã??ã?®ã??ã??ã??ã??ã??ä??ã?£ã?¦ã?¿ã??ã??ã?ªï??

ã?©ã?ªã??ã??ã??ä??ã?£ã?¦é??å¸?ã??ã?¦ã??ã??ã??ã??ã??ã??ã??ã??ã??ã??â??人ä??ã??

※このエントリは ブロガーにより投稿されたものです。朝日インタラクティブ および ZDNet Japan編集部の見解・意向を示すものではありません。
このサイトでは、利用状況の把握や広告配信などのために、Cookieなどを使用してアクセスデータを取得・利用しています。 これ以降ページを遷移した場合、Cookieなどの設定や使用に同意したことになります。
Cookieなどの設定や使用の詳細、オプトアウトについては詳細をご覧ください。
[ 閉じる ]