<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>STUDIO KINGDOM &#187; CakePHP修行</title>
	<atom:link href="http://www.studio-kingdom.com/category/cakephp/cakephp_training/feed" rel="self" type="application/rss+xml" />
	<link>http://www.studio-kingdom.com</link>
	<description>PHP、javaScriptによるプログラミングやAdobeソフトによるWEBデザインなどなど</description>
	<lastBuildDate>Tue, 29 Nov 2011 14:01:00 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>アプリひとまず完成（CakePHP修行 #14）</title>
		<link>http://www.studio-kingdom.com/cakephp/cakephp_training/184</link>
		<comments>http://www.studio-kingdom.com/cakephp/cakephp_training/184#comments</comments>
		<pubDate>Mon, 27 Oct 2008 13:12:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP修行]]></category>

		<guid isPermaLink="false">http://www.studio-kingdom.com/?p=184</guid>
		<description><![CDATA[完成といってもまだまだ機能不足で課題も多いですが・・・。 http://clubss.studio-kingdom.com/ (メール：guest@studio-kingdom.com、パスワード：guest でログイン [...]]]></description>
			<content:encoded><![CDATA[				<p>完成といってもまだまだ機能不足で課題も多いですが・・・。</p>
				<p><a href="http://clubss.studio-kingdom.com/" target="_blank">http://clubss.studio-kingdom.com/<br />
				</a>(メール：guest@studio-kingdom.com、パスワード：guest でログインすることができます。)</p>
				<p>改めてこのWEBアプリの趣旨を確認し、今後実装したい機能を挙げてみました。</p>
				<h3>WEBアプリの趣旨</h3>
				<p>友達やサークルなどの仲間内で利用してもらう。<br />
				このアプリを利用することで、イベントを<span style="color: #ff0000;">「気軽」</span>に企画することが出来るようになるのが狙い。モンスターハンターなどのネットワークゲームでも利用されることを期待している。</p>
				<h3>今後実装したい機能</h3>
				<p>・携帯電話対応<br />
				・グループ機能<br />
				・アンケート機能</p>
				<p>下記の画像は実際にWebサーバで動いているものをキャプチャーしたものです。<br />
				上から順に「トップ、カレンダー、飲み会等のイベント参加、メンバー一覧、設定」となっています。</p>
				<p><a href="http://www.studio-kingdom.com/wp-content/uploads/2008/11/clubsstop11.png"><img style="display: inline" title="clubss-top" src="http://www.studio-kingdom.com/wp-content/uploads/2008/11/clubsstop11-thumb.png" alt="clubss-top" width="128" height="104" /></a></p>
				<p><a href="http://www.studio-kingdom.com/wp-content/uploads/2008/11/clubsscal.png"><img style="display: inline" title="clubss-cal" src="http://www.studio-kingdom.com/wp-content/uploads/2008/11/clubsscal-thumb.png" alt="clubss-cal" width="128" height="104" /></a></p>
				<p><a href="http://www.studio-kingdom.com/wp-content/uploads/2008/11/clubssevent.png"><img style="display: inline" title="clubss-event" src="http://www.studio-kingdom.com/wp-content/uploads/2008/11/clubssevent-thumb.png" alt="clubss-event" width="128" height="104" /></a></p>
				<p><a href="http://www.studio-kingdom.com/wp-content/uploads/2008/11/clubssmem4.png"><img style="display: inline" title="clubss-mem" src="http://www.studio-kingdom.com/wp-content/uploads/2008/11/clubssmem4-thumb.png" alt="clubss-mem" width="128" height="75" /></a></p>
				<p><a href="http://www.studio-kingdom.com/wp-content/uploads/2008/11/clubssset1.png"><img style="display: inline" title="clubss-set" src="http://www.studio-kingdom.com/wp-content/uploads/2008/11/clubssset1-thumb.png" alt="clubss-set" width="128" height="81" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.studio-kingdom.com/cakephp/cakephp_training/184/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>開発中アプリの大まかなイメージを作成（CakePHP修行 #13）</title>
		<link>http://www.studio-kingdom.com/cakephp/cakephp_training/81</link>
		<comments>http://www.studio-kingdom.com/cakephp/cakephp_training/81#comments</comments>
		<pubDate>Thu, 18 Sep 2008 12:15:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP修行]]></category>

		<guid isPermaLink="false">http://www.studio-kingdom.com/cakephp_training/136</guid>
		<description><![CDATA[Fireworks使って　↓　のようにデザインしてみました。 次はHTMLとCSSに取り掛かって、要件ももっと詰めていかないと。]]></description>
			<content:encoded><![CDATA[				<p>Fireworks使って　↓　のようにデザインしてみました。<br />
				次はHTMLとCSSに取り掛かって、要件ももっと詰めていかないと。</p>
				<p><a href="http://www.studio-kingdom.com/wp-content/uploads/2008/04/clbs_top.png" title="clbs_top.png"><img src="http://www.studio-kingdom.com/wp-content/uploads/2008/04/clbs_top.thumbnail.png" alt="clbs_top.png" /></a></p>
				<p><a href="http://www.studio-kingdom.com/wp-content/uploads/2008/04/clbs_cal.png" title="clbs_cal.png"><img src="http://www.studio-kingdom.com/wp-content/uploads/2008/04/clbs_cal.thumbnail.png" alt="clbs_cal.png" /></a></p>
				<p><a href="http://www.studio-kingdom.com/wp-content/uploads/2008/04/clbs_ref.png" title="clbs_ref.png"><img src="http://www.studio-kingdom.com/wp-content/uploads/2008/04/clbs_ref.thumbnail.png" alt="clbs_ref.png" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.studio-kingdom.com/cakephp/cakephp_training/81/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>開発の心得（CakePHP修行 #12）</title>
		<link>http://www.studio-kingdom.com/cakephp/cakephp_training/80</link>
		<comments>http://www.studio-kingdom.com/cakephp/cakephp_training/80#comments</comments>
		<pubDate>Tue, 16 Sep 2008 17:12:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP修行]]></category>

		<guid isPermaLink="false">http://www.studio-kingdom.com/cakephp_training/135</guid>
		<description><![CDATA[こちらのエントリーを参考に開発の心得というやつを作ってみた。 新サービスを開発するときに気をつけてること 1.コンセプト = メタファーを決める 「飲み会企画クラブ」みたいな感じかなぁ。 飲み会以外にも、クラブ・サークル [...]]]></description>
			<content:encoded><![CDATA[				<p>こちらのエントリーを参考に開発の心得というやつを作ってみた。<br />
				<a href="http://blog.myrss.jp/archives/2008/02/post_130.html" target="_blank">新サービスを開発するときに気をつけてること</a></p>
				<blockquote><p> 1.コンセプト = メタファーを決める</p></blockquote>
				<p>「飲み会企画クラブ」みたいな感じかなぁ。<br />
				飲み会以外にも、クラブ・サークル活動なんかのイベントも含む。</p>
				<p>登録ユーザーがTwitter風な発言コーナーで<br />
				A:「たまには飲みにいかない？」<br />
				B:「いいねー、企画して！」<br />
				A:「じゃ、週末に。」<br />
				A:「飲み会登録しました。参加する人は参加登録しといて。」<br />
				C:「参戦します。参加登録しときました。」<br />
				のような流れで使われることを期待しています。<br />
				ちなみにネットサービスではなく、CMSチックなものを目指しています。<br />
				「CakePHPセットアップしてから、このソース突っ込んでください」みたいな。</p>
				<blockquote><p>2.サービス名を決める</p></blockquote>
				<p>Club + Class で Clubssとしてるけど、何かイマイチ・・・。</p>
				<blockquote><p>3.アイデア ⇒ 開発 ⇒ 仕上げ の苦しみ度合いを理解しておく</p></blockquote>
				<p>理解してないですね。<br />
				萎えないような工夫として、やはり人を巻き込むことでしょうか。<br />
				CakePHPのフォーラムに「こんなもの作ってます！」と宣言してみるか。</p>
				<blockquote><p> 4.時間をかけて悩んだものはアウト</p></blockquote>
				<p>本当にその通りだと思います。<br />
				これまでの経験から、何度か煮詰まったら一旦全部まっさらにして最初からやり直した方が早いことが多いです。</p>
				<blockquote><p>5.デザインから入る</p></blockquote>
				<p>教えに従うことにしました。FireWorksで作成中。</p>
				<blockquote><p>6.デザインを懲りすぎない</p></blockquote>
				<p>これも同意。<br />
				良質なアイコン素材と背景のグラデーションでごまかして乗り切る予定。</p>
				<blockquote><p>7.デザインのポイントは余白</p></blockquote>
				<p>「プロのデザイナーは余白をデザインする」という話を聞いたことがあります。<br />
				逆に素人は余白を埋めたがるそうな。</p>
				<blockquote><p>8.LEGO ブロックみたいなパーツから作り始める</p></blockquote>
				<p>もう少し詳しく知りたい！<br />
				汎用的なクラスや関数のこと？<br />
				ヘッダーやフッター、メニューなんかの共通パーツのこと？<br />
				それとも、全部のことかな。</p>
				<blockquote><p> 9.LEGO ブロックを一気に組み立てる</p></blockquote>
				<p>この作業は楽しそうですね。モチベーションが無いとなぁ。</p>
				<blockquote><p>10.仕上げはリリース日の設定から</p></blockquote>
				<p>完全プライベートでやっているので、仕事との兼ね合いがあって決めるのが非常に難しい。<br />
				10月いっぱいの完成を目指して進めたいところ。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.studio-kingdom.com/cakephp/cakephp_training/80/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>途中経過（CakePHP修行 #11）</title>
		<link>http://www.studio-kingdom.com/cakephp/cakephp_training/78</link>
		<comments>http://www.studio-kingdom.com/cakephp/cakephp_training/78#comments</comments>
		<pubDate>Mon, 08 Sep 2008 13:09:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP修行]]></category>

		<guid isPermaLink="false">http://www.studio-kingdom.com/cakephp_training/129</guid>
		<description><![CDATA[久々の更新です。ネタがありませんが・・・。 継続するって難しい…。 1週間に2,3つのクオリティの高いエントリーを投稿し続けるαブロガーってやっぱ凄いですね。]]></description>
			<content:encoded><![CDATA[				<p>久々の更新です。ネタがありませんが・・・。</p>
				<p><img src="http://www.studio-kingdom.com/wp-content/uploads/2008/04/2008-04-08_214531.png" alt="2008-04-08_214531.png" /></p>
				<p>継続するって難しい…。<br />
				1週間に2,3つのクオリティの高いエントリーを投稿し続けるαブロガーってやっぱ凄いですね。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.studio-kingdom.com/cakephp/cakephp_training/78/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DB日付値を任意のフォーマットで取得するコンポーネント（CakePHP修行 #10）</title>
		<link>http://www.studio-kingdom.com/cakephp/cakephp_training/77</link>
		<comments>http://www.studio-kingdom.com/cakephp/cakephp_training/77#comments</comments>
		<pubDate>Wed, 13 Aug 2008 12:30:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP修行]]></category>

		<guid isPermaLink="false">http://www.studio-kingdom.com/cakephp_training/127</guid>
		<description><![CDATA[カレンダー・スケジュールに関するアプリを作っている関係上、どうしても日付に関する処理が多くなってしまいます。 DBに保存した日付値を任意のフォーマットに変換してくれるコンポーネントやヘルパーがデフォルトで用意されていない [...]]]></description>
			<content:encoded><![CDATA[				<p>カレンダー・スケジュールに関するアプリを作っている関係上、どうしても日付に関する処理が多くなってしまいます。<br />
				DBに保存した日付値を任意のフォーマットに変換してくれるコンポーネントやヘルパーがデフォルトで用意されていないか探してみたのですが見つからない…。<br />
				多分、Timeヘルパーあたりにあると思うのですが、ヘルパーだとController内で使用することが出来ないので「DatetimeComponent」なるコンポーネントを自作してみました。</p>
				<p>componentsフォルダにdatetime.phpファイルを作成し、下記のソースをコピペ。</p>
				<p><strong>・app/controllers/components/datetime.php</strong><br />
				[sourcecode language='php']<br />
				<?php<br />
				class DatetimeComponent extends Object<br />
				{<br />
					var $controller = null;</p>
				<p>	function __construct(){<br />
						parent::__construct();<br />
					}</p>
				<p>	function startup(&amp;amp;$controller){<br />
						$this->controller =&amp;amp; $controller;<br />
					}</p>
				<p>	function toFormat($elem, $format){<br />
						//2008-02-27 00:00:00<br />
						$set_year = substr($elem, 0, 4);    //年<br />
						$set_month = substr($elem, 5, 2);    //月<br />
						$set_day = substr($elem, 8, 2);        //日<br />
						$set_hour = substr($elem, 11, 2);    //時<br />
						$set_minute = substr($elem, 14, 2);    //分<br />
						$set_second = substr($elem, 17, 2);    //秒</p>
				<p>		return date($format, mktime($set_hour, $set_minute, $set_second, $set_month, $set_day, $set_year));<br />
					}<br />
				}<br />
				?><br />
				[/sourcecode]</p>
				<p>フォーマットの指定はPHPの標準関数であるDate関数と同じ形式です。<br />
				↓こんな感じで使用します。<br />
				[sourcecode language='php']<br />
				$yyyy_m_d = $this->Datetime->toFormat($this->data['Schedule']['start'],&#8217;Y/n/j&#8217;);<br />
				[/sourcecode]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.studio-kingdom.com/cakephp/cakephp_training/77/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>登録したスケジュールをカレンダーに表示（CakePHP修行 #9）</title>
		<link>http://www.studio-kingdom.com/cakephp/cakephp_training/76</link>
		<comments>http://www.studio-kingdom.com/cakephp/cakephp_training/76#comments</comments>
		<pubDate>Sun, 27 Jul 2008 11:19:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP修行]]></category>

		<guid isPermaLink="false">http://www.studio-kingdom.com/cakephp_training/126</guid>
		<description><![CDATA[今回はカレンダーページ上に、登録したスケジュールのタイトルを表示する処理を実装します。 コントローラーのCalendarアクションを変更します。 ・app/controllers/schedules_controller [...]]]></description>
			<content:encoded><![CDATA[				<p>今回はカレンダーページ上に、登録したスケジュールのタイトルを表示する処理を実装します。</p>
				<p>コントローラーのCalendarアクションを変更します。<br />
				<strong>・app/controllers/schedules_controller.php</strong><br />
				[sourcecode language='php']<br />
				//calendar<br />
				function calendar($year = null, $month = null){<br />
					//システムメッセージをセット<br />
					$this->set(&#8216;sys_msg&#8217;, $this->Session->read(&#8216;sys_msg&#8217;));<br />
					$this->Session->delete(&#8216;sys_msg&#8217;);</p>
				<p>	//指定された年月を取得／指定なしの場合はシステム日付を取得<br />
					if($year == null || $month == null){<br />
						$Month = new Calendar_Month_Weekdays( date(&#8216;Y&#8217;), date(&#8216;m&#8217;), 0 );<br />
						$year = date(&#8216;Y&#8217;);<br />
						$month = date(&#8216;m&#8217;);<br />
					} else {<br />
						$Month = new Calendar_Month_Weekdays( $year, $month, 0 );<br />
					}<br />
					//PEARよりカレンダー情報を読み込み<br />
					$Month->build();<br />
					$this->set(&#8216;month&#8217;, $Month);<br />
					//取得した年月、次月、前月をYYYY/MM形式で変数にセット<br />
					$this->set(&#8216;next_year_month&#8217;, date(&#8220;Y/m&#8221;, mktime(0, 0, 0, $month+1, 1, $year)));<br />
					$this->set(&#8216;this_year_month&#8217;, date(&#8220;Y/m&#8221;, mktime(0, 0, 0, $month, 1, $year)));<br />
					$this->set(&#8216;prev_year_month&#8217;, date(&#8220;Y/m&#8221;, mktime(0, 0, 0, $month-1, 1, $year)));</p>
				<p>	//取得した年月のスケジュール情報をScheduleから取得<br />
					$cond = array(<br />
						&#8216;AND&#8217; => array(<br />
						array(&#8220;Schedule.start&#8221; => &#8220;>=$year-$month-01&#8243;)<br />
						,array(&#8220;Schedule.start&#8221; => &#8220;< =$year-$month-31")<br />
						)<br />
					);<br />
					$this->set(&#8216;schedules&#8217;, $this->Schedule->findAll($cond));<br />
				}<br />
				[/sourcecode]<br />
				<span id="more-76"></span></p>
				<p>ビューのCalendarページの日付セルにスケジュールタイトルを表示するように処理を付け加えます。<br />
				<strong>・app/views/schedules/calendar.thtml</strong><br />
				[sourcecode language='php']</p>
				<h1>Calendar</h1>
				<p>< ?php<br />
				echo $html->link(&#8216;< <', '/schedules/calendar/' . $prev_year_month);<br />
				echo $this_year_month;<br />
				echo $html->link(&#8216;>>&#8217;, &#8216;/schedules/calendar/&#8217; . $next_year_month);<br />
				?></p>
				<p><!-- ▼sys_msg --><br />
				< ?php if(isset($sys_msg)){ ?></p>
				<div id="sys_msg">< ?php echo($sys_msg); ?></div>
				<p><script type="text/javascript"><!--
				$(document).ready(function() { $("#sys_msg").fadeOut(2500); });
				// --></script><br />
				< ?php } ?><br />
				<!-- ▲sys_msg --></p>
				<p><!-- ▼calendar --></p>
				<div id="calendar">
				<table border="0">
				<tbody>
				<tr>
				<th>Sun</th>
				<th>Mon</th>
				<th>Tue</th>
				<th>Wed</th>
				<th>Thu</th>
				<th>Fri</th>
				<th>Sat</th>
				</tr>
				<p>< ?php<br />
				while ($Day = $month->fetch()) {<br />
				if ($Day->isFirst()) {<br />
				echo &#8221;</p>
				<tr>\n&#8221;;<br />
				}<br />
				if ($Day->isEmpty()) {<br />
				echo &#8221;</p>
				<td></td>
				<p>\n&#8221;;<br />
				} else {<br />
				echo &#8221;</p>
				<td>&#8221; . $Day->thisDay();<br />
				//add link<br />
				echo $html->link($html->image(&#8220;pencil_add.png&#8221; , array(&#8220;class&#8221;=>&#8221;alphafilter&#8221;)), &#8216;/schedules/add/&#8217; . $month->year . &#8220;/&#8221; . $month->month . &#8220;/&#8221; . $Day->thisDay(),null,null,false);<br />
				echo &#8220;\n&#8221;;<br />
				//schedulesテーブルに登録されているタイトルを表示<br />
				echo &#8221;</p>
				<ul>\n&#8221;;<br />
				foreach ($schedules as $schedule):<br />
				if(date(&#8220;Ymd&#8221;, strtotime($schedule['Schedule']['start'])) == date(&#8220;Ymd&#8221;, mktime(0, 0, 0, $month->month, $Day->thisDay(), $month->year))){<br />
				echo &#8221;</p>
				<li>&#8220;;<br />
				echo $html->link($schedule['Schedule']['title'], &#8216;/schedules/edit/&#8217;.$schedule['Schedule']['id']);<br />
				echo &#8220;</li>
				<p>\n&#8221;;<br />
				}<br />
				endforeach;<br />
				echo &#8220;</ul>
				<p>\n&#8221;;<br />
				echo &#8220;</td>
				<p>\n&#8221;;<br />
				}<br />
				if ($Day->isLast()) {<br />
				echo &#8220;</tr>
				<p>\n&#8221;;<br />
				}<br />
				}<br />
				?></tbody>
				</table>
				</div>
				<p><!-- ▲calendar --><br />
				[/sourcecode]</p>
				<p>カレンダー上に表示するタイトルのスタイルを指定<br />
				<strong>・app/webroot/css/cake.generic.css</strong><br />
				[sourcecode language='css']<br />
				#calendar ul{<br />
					margin: 0;<br />
					padding: 0;<br />
					list-style-image:none;<br />
					list-style-position:outside;<br />
					list-style-type:none;<br />
				}</p>
				<p>#calendar li{<br />
					margin:0;<br />
					padding:3px 0px 1px 18px;<br />
					background-image:url(/img/arr.png);<br />
					background-repeat:no-repeat;<br />
					line-height:120%;<br />
					margin-bottom:0px;<br />
				}<br />
				[/sourcecode]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.studio-kingdom.com/cakephp/cakephp_training/76/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>スケジュール登録処理を作成（CakePHP修行 #8）</title>
		<link>http://www.studio-kingdom.com/cakephp/cakephp_training/74</link>
		<comments>http://www.studio-kingdom.com/cakephp/cakephp_training/74#comments</comments>
		<pubDate>Fri, 18 Jul 2008 13:08:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP修行]]></category>

		<guid isPermaLink="false">http://www.studio-kingdom.com/cakephp_training/122</guid>
		<description><![CDATA[今回はスケジュール登録画面を作成します。 今回は(1)スケジュール登録ページのリンク→(2)登録ページ→(3)登録処理→(4)登録完了メッセージの表示、と 順を追って説明していきます。 ちなみに完成画像はこちら↓ (1) [...]]]></description>
			<content:encoded><![CDATA[				<p>今回はスケジュール登録画面を作成します。<br />
				今回は(1)スケジュール登録ページのリンク→(2)登録ページ→(3)登録処理→(4)登録完了メッセージの表示、と<br />
				順を追って説明していきます。</p>
				<p>ちなみに完成画像はこちら↓</p>
				<p><a href='http://www.studio-kingdom.com/wp-content/uploads/2008/02/calendar_add.gif' title='calendar_add.gif'><img src='http://www.studio-kingdom.com/wp-content/uploads/2008/02/calendar_add.thumbnail.gif' alt='calendar_add.gif' /></a></p>
				<p><a href='http://www.studio-kingdom.com/wp-content/uploads/2008/02/schedule_add.gif' title='schedule_add.gif'><img src='http://www.studio-kingdom.com/wp-content/uploads/2008/02/schedule_add.thumbnail.gif' alt='schedule_add.gif' /></a></p>
				<p><strong>(1)スケジュール登録ページのリンク</strong><br />
				<b>・app/view/schelue/calendar.thtml</b><br />
				※前回まで、app/view/schelue/index.thtmlだったファイルをcalendar.thtmlに変更しました。</p>
				<p>まずは、カレンダーページの日付セル内にそれぞれ日付登録ページへのリンクを張ります。<br />
				ここでリンク画像に<a href="http://www.famfamfam.com/lab/icons/" target="_blank">famfamfam</a>さんの画像を使用します。<br />
				画像形式がPNGなので、IE6対策を施しておきます。<br />
				IE6のPNG画像透過処理を行ってくれる<a href="http://blog.webcreativepark.net/2007/02/01-233315.html" target="_blank">to-Rさんが作成された便利なjsライブラリ</a>があるので、<br />
				それを利用させていただきます。ダウンロードしたjsファイルをapp/webroot/jsフォルダに入れてください。</p>
				<p>リンクをこんな風に記述。<br />
				[sourcecode language='php']<br />
				echo $html->link($html->image(&#8220;pencil_add.png&#8221; , array(&#8220;class&#8221;=>&#8221;alphafilter&#8221;)), &#8216;/schedules/add/&#8217; . $month->year . &#8220;/&#8221; . $month->month . &#8220;/&#8221; . $Day->thisDay(),null,null,false);<br />
				[/sourcecode]</p>
				<p>また、ダウンロードしたjsファイルを読み込むために、レイアウトのデフォルトファイルにjsファイル読み込みの記述を追加します。<br />
				後述するjqueryファイルも同じように追記します。<br />
				<b>・app/views/layouts/default.thtml</b><br />
				[sourcecode language='php']<br />
				<head><br />
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></p>
				<link rel="stylesheet" href="/css/cake.generic.css" type="text/css">
				<p><script type="text/javascript" src="/js/alphafilter.js"></script><br />
				<script type="text/javascript" src="/js/jquery.js"></script>
				</link></head><br />
				[/sourcecode]</p>
				<p><span id="more-74"></span></p>
				<p><strong>(2)登録ページ</strong><br />
				<b>・app/view/schedule/add.thtml</b></p>
				<p>app/view/schedlue配下にadd.thtmlを作成します。<br />
				このファイルはCakePHPの典型的な、登録フォームのページにします。</p>
				<p>[sourcecode language='php']</p>
				<h1> &#8211; Schedule Add &#8211; </h1>
				<div id="content">
				<h2>< ?php echo($year . "/" . $month . "/" . $day) ?></h2>
				<p>< ?php echo($html->link(&#8220;Back&#8221;, &#8216;/schedules/calendar/&#8217; . $year .&#8217;/&#8217; . $month)) ?></p>
				<form method="post" action="<?php echo $html->url(&#8216;/schedules/add/&#8217; . $year . &#8220;/&#8221; . $month)?>&#8221;><br />
				    < ?php echo $html->hidden(&#8216;Schedule/start_year&#8217;, array(&#8220;value&#8221; => $year)) ?><br />
				    < ?php echo $html->hidden(&#8216;Schedule/start_month&#8217;, array(&#8220;value&#8221; => $month)) ?><br />
				    < ?php echo $html->hidden(&#8216;Schedule/start_day&#8217;, array(&#8220;value&#8221; => $day)) ?></p>
				<p>
				        Title：<br />
				        < ?php echo $html->input(&#8216;Schedule/title&#8217;, array(&#8216;size&#8217; => &#8217;40&#8242;))?><br />
				        < ?php echo $html->tagErrorMsg(&#8216;Schedule/title&#8217;, &#8216;タイトルは必ず入力してください。&#8217;) ?>
				    </p>
				<p>
				        Content：<br />
				        < ?php echo $html->textarea(&#8216;Schedule/content&#8217;, array(&#8216;rows&#8217;=>&#8217;10&#8242;)) ?><br />
				        < ?php echo $html->tagErrorMsg(&#8216;Schedule/content&#8217;, &#8216;本文は必ず入力してください。&#8217;) ?>
				    </p>
				<p>
				        < ?php echo $html->submit(&#8216;Save&#8217;) ?>
				    </p>
				</form>
				</div>
				<p>[/sourcecode]</p>
				<p><strong>(3)登録処理</strong><br />
				<b>・app/controllers/schedules_controller.php</b></p>
				<p>登録処理もCakePHPの典型的な登録処理です。<br />
				登録完了メッセージをセッションに入れているのは<a href="http://www.ideaxidea.com/archives/cakephp/" target="_blank">百式さんの手法</a>をパクらせていただきました。</p>
				<p>[sourcecode language='php']<br />
				//add<br />
				function add($year = null, $month = null, $day = null)<br />
				{<br />
					$this->set(&#8220;year&#8221;,$year);<br />
					$this->set(&#8220;month&#8221;,$month);<br />
					$this->set(&#8220;day&#8221;,$day);</p>
				<p>	if(!empty($this->data))<br />
					{<br />
						//日付をセット<br />
						$this->data['Schedule']['start'] =<br />
							$this->data['Schedule']['start_year'] . &#8220;-&#8221; .<br />
							$this->data['Schedule']['start_month'] . &#8220;-&#8221; .<br />
							$this->data['Schedule']['start_day'];</p>
				<p>		//データ保存<br />
						if($this->Schedule->save($this->data))<br />
						{<br />
							$this->Session->write(&#8216;sys_msg&#8217;, &#8216;Your schedule has been saved.&#8217;);<br />
							$this->redirect(&#8216;/schedules/calendar/&#8217; . $year . &#8220;/&#8221; . $month);<br />
						}<br />
					}<br />
				}<br />
				[/sourcecode]</p>
				<p><strong>(4)登録完了メッセージの表示</strong><br />
				<b>・app/view/schelue/calendar.thtml</b></p>
				<p>登録完了メッセージをjqeryを使用して、ふわーんと表示させています。これも<a href="http://www.ideaxidea.com/archives/cakephp/" target="_blank">百式さんの手法</a>をパクらせていただきました。</p>
				<p>[sourcecode language='php']<br />
				<!-- ▼sys_msg --><br />
				< ?php if(isset($sys_msg)){ ?></p>
				<div id="sys_msg">< ?php echo($sys_msg); ?></div>
				<p><script>
				$(document).ready(function() { $("#sys_msg").fadeOut(2500); });
				</script><br />
				< ?php } ?><br />
				<!-- ▲sys_msg --><br />
				[/sourcecode]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.studio-kingdom.com/cakephp/cakephp_training/74/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>テーブルレイアウトを調整（CakePHP修行 #7）</title>
		<link>http://www.studio-kingdom.com/cakephp/cakephp_training/73</link>
		<comments>http://www.studio-kingdom.com/cakephp/cakephp_training/73#comments</comments>
		<pubDate>Mon, 07 Jul 2008 11:53:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP修行]]></category>

		<guid isPermaLink="false">http://www.studio-kingdom.com/cakephp_training/120</guid>
		<description><![CDATA[たいしたネタではないですが、テーブルのレイアウトを変更したのでソースを載せておきます。CakePHPと関係ないな…。 レイアウト変更後は↓のようになります。 ・app/webroot/css/cake.generic.c [...]]]></description>
			<content:encoded><![CDATA[				<p>たいしたネタではないですが、テーブルのレイアウトを変更したのでソースを載せておきます。CakePHPと関係ないな…。<br />
				レイアウト変更後は↓のようになります。</p>
				<p><a href='http://www.studio-kingdom.com/wp-content/uploads/2008/02/table_layouts.gif' title='table_layouts.gif'><img src='http://www.studio-kingdom.com/wp-content/uploads/2008/02/table_layouts.thumbnail.gif' alt='table_layouts.gif' /></a></p>
				<p><b>・app/webroot/css/cake.generic.css</b>に追加<br />
				[sourcecode language='css']<br />
				/* table */<br />
				table {<br />
					font-size:12px;<br />
					color:#333333;<br />
					background-color:#FFFFFF;<br />
					clear:both;<br />
					padding:0;<br />
					margin:0 auto;<br />
					white-space: normal;<br />
					border-collapse:collapse;<br />
				}<br />
				th {<br />
					background-color: #EEEEEE;<br />
					border: 1px solid #CCCCCC;<br />
					text-align: center;<br />
					padding:4px 4px;<br />
					border-collapse:collapse;<br />
				}<br />
				table tr td {<br />
					border: 1px dotted #CCCCCC;<br />
					padding:4px 4px;<br />
					vertical-align:top;<br />
					text-align: left;<br />
					border-collapse:collapse;<br />
				}</p>
				<p>/* calendar */<br />
				.holiday{<br />
					font-size:10px;<br />
					color:#666666;<br />
				}</p>
				<p>#calendar {width:700px;}</p>
				<p>#calendar ul{<br />
					margin: 5px 0;<br />
					padding: 0;<br />
					list-style-image:none;<br />
					list-style-position:outside;<br />
					list-style-type:none;<br />
				}</p>
				<p>#calendar li{<br />
					background-image:url(/img/arr.png);<br />
					background-repeat:no-repeat;<br />
					line-height:120%;<br />
					margin-bottom:0px;<br />
					padding:3px 0px 1px 18px;<br />
				}</p>
				<p>#calendar table tr td {<br />
					height:80px;<br />
					width:100px<br />
				}<br />
				[/sourcecode]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.studio-kingdom.com/cakephp/cakephp_training/73/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>カレンダーページを作成（CakePHP修行 #6）</title>
		<link>http://www.studio-kingdom.com/cakephp/cakephp_training/72</link>
		<comments>http://www.studio-kingdom.com/cakephp/cakephp_training/72#comments</comments>
		<pubDate>Sat, 05 Jul 2008 12:55:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP修行]]></category>

		<guid isPermaLink="false">http://www.studio-kingdom.com/cakephp_training/117</guid>
		<description><![CDATA[今回はPearを使ってカレンダー表示ページを作成します。Pearとカレンダーパッケージについては以前にも参考にさせていただいたことのあるmukoさんのブログエントリーが分かりやすいです。コメントも含めて参考にさせていただ [...]]]></description>
			<content:encoded><![CDATA[				<p>今回はPearを使ってカレンダー表示ページを作成します。Pearとカレンダーパッケージについては以前にも参考にさせていただいたことのあるmukoさんのブログエントリーが分かりやすいです。コメントも含めて参考にさせていただきました。</p>
				<p><a href="http://creative-interactive.lumber-mill.com/blog/webprograming/2007/08/15/14" target="_blank"><span class="nodeLabelBox repTarget"></span><span class="nodeText editable">creative@interactive ≫ CakePHPとカレンダー表示（2）</span> </a></p>
				<p>まずは下記のようにvendorフォルダにPEARとカレンダーパッケージを配置します。</p>
				<p><img src="http://www.studio-kingdom.com/wp-content/uploads/2008/02/vendor_pear.gif" alt="vendor_pear.gif" /></p>
				<p><span id="more-72"></span></p>
				<p><b>・app/vendors/pear_ini.php</b><br />
				[sourcecode language='php']<br />
				define(&#8216;PEAR_PATH&#8217;, dirname(__FILE__) . DS . &#8216;PEAR&#8217;);<br />
				ini_set(&#8216;include_path&#8217;, PEAR_PATH . PATH_SEPARATOR . ini_get(&#8216;include_path&#8217;));<br />
				[/sourcecode]</p>
				<p><b>・app/controllers/schedules_controller.php<br />
				[sourcecode language='php']<br />
				vendor(&#8220;pear_ini&#8221;);<br />
				vendor(&#8220;PEAR/Calendar/Month/Weekdays&#8221;);</p>
				<p>class SchedulesController extends AppController<br />
				{<br />
					var $name = &#8216;Schedules&#8217;;<br />
					var $uses = array(&#8216;Schedule&#8217;);</p>
				<p>	function index($year = null, $month = null)<br />
					{<br />
						//スケジュール読み込み<br />
						$this->set(&#8216;schedules&#8217;, $this->Schedule->findAll());<br />
						if($year == null || $month == null)<br />
						{<br />
							$Month = new Calendar_Month_Weekdays( date(&#8216;Y&#8217;), date(&#8216;m&#8217;), 0 );<br />
							$year = date(&#8216;Y&#8217;);<br />
							$month = date(&#8216;m&#8217;);<br />
						} else {<br />
							$Month = new Calendar_Month_Weekdays( $year, $month, 0 );<br />
						}<br />
						//PEARよりカレンダー情報を読み込み<br />
						$Month->build();<br />
						$this->set(&#8216;month&#8217;, $Month);<br />
					}<br />
				}<br />
				[/sourcecode]</p>
				<p></b><b>・app/views/schedules/index.thtml</b><br />
				[sourcecode language='php']</p>
				<h1> &#8211; Test &#8211; </h1>
				<p><!-- ▼calendar --></p>
				<div id="calendar">
				<table border="0">
				<tr>
				<th>Sun</th>
				<th>Mon</th>
				<th>Tue</th>
				<th>Wed</th>
				<th>Thu</th>
				<th>Fri</th>
				<th>Sat</th>
				</tr>
				<p>< ?php<br />
				    while ($Day = $month->fetch()) {<br />
				        if ($Day->isFirst()) {<br />
				            echo &#8220;<br />
				<tr>\n&#8221;;<br />
				        }<br />
				        if ($Day->isEmpty()) {<br />
				            echo &#8220;
				<td>&amp;nbsp;</td>
				<p>\n&#8221;;<br />
				        } else {<br />
				            echo &#8220;
				<td>&#8221; . $Day->thisDay() . &#8220;</td>
				<p>\n&#8221;;<br />
				        }<br />
				        if ($Day->isLast()) {<br />
				            echo &#8220;</tr>
				<p>\n&#8221;;<br />
				        }<br />
				    }<br />
				?><br />
				</table>
				</div>
				<p><!-- ▲calendar --><br />
				[/sourcecode]</p>
				<p>ここまでやれば下記のような感じでカレンダーページが表示されると思います。<br />
				<a href='http://www.studio-kingdom.com/wp-content/uploads/2008/02/clbs_cal_page.gif' title='clbs_cal_page.gif'><img src='http://www.studio-kingdom.com/wp-content/uploads/2008/02/clbs_cal_page.thumbnail.gif' alt='clbs_cal_page.gif' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.studio-kingdom.com/cakephp/cakephp_training/72/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>デフォルトレイアウトとCSSの変更（CakePHP修行 #5）</title>
		<link>http://www.studio-kingdom.com/cakephp/cakephp_training/71</link>
		<comments>http://www.studio-kingdom.com/cakephp/cakephp_training/71#comments</comments>
		<pubDate>Tue, 01 Jul 2008 12:16:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CakePHP修行]]></category>

		<guid isPermaLink="false">http://www.studio-kingdom.com/cakephp_training/115</guid>
		<description><![CDATA[前回までは主にDB周りの作業でしたが、今回はデザイン周りの作業を進めてみたいと思います。 CakePHPでは、「app/views/layouts」フォルダ内の「default.thtml」をアプリケーション全体のデザイ [...]]]></description>
			<content:encoded><![CDATA[				<p>前回までは主にDB周りの作業でしたが、今回はデザイン周りの作業を進めてみたいと思います。<br />
				CakePHPでは、「app/views/layouts」フォルダ内の「default.thtml」をアプリケーション全体のデザインテンプレートのように扱うことが出来ます。デザインを変更するということで当然CSSにも手を加えます。<br />
				このCSSレイアウトを構築するに当たってYEAR OF THE CAT STYLEさんの記事が大変参考になりました。</p>
				<p>・<a href="http://desperadoes.biz/style/dan/" target="_blank">スタイルシートによる崩れない　2カラム　3カラム・レイアウト</a></p>
				<p><b>・app/vies/layouts/default.thtml</b><br />
				（ファイルが存在しない場合は、作成してください。）<br />
				[sourcecode language='php']<br />
				< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
				<html xmlns="http://www.w3.org/1999/xhtml"><br />
				<head><br />
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></p>
				<link rel="stylesheet" href="/css/cake.generic.css" type="text/css">
				</link></head><br />
				<body></p>
				<p><!-- ▼container --></p>
				<div id="container">
				<p><!-- ▼header --></p>
				<div id="header">
					&amp;nbsp;
				</div>
				<p><!-- ▲header --></p>
				<p><!-- ▼contents --></p>
				<div id="contents">
				< ?php echo $content_for_layout ?>
				</div>
				<p><!-- ▲contents --></p>
				</div>
				<p><!-- ▲container --></p>
				<p><!-- ▼footer --></p>
				<div id="footer">Copyright &amp;copy; 2008 STUDIO KINGDOM All rights reserved.</div>
				<p><!-- ▲footer --></p>
				<p></body><br />
				</html><br />
				[/sourcecode]</p>
				<p>次はスタイルシートです。ちょっと長いですが、インデントされている箇所が変更されています。<br />
				<b>・app/webroot/css/cake.generic.css</b><br />
				[sourcecode language='css']<br />
				*{<br />
					margin:0;<br />
					padding:0;<br />
				}</p>
				<p>body{<br />
					background:transparent url(/img/background.png) repeat scroll 50%;<br />
					color:#000000;<br />
					font-family:Verdana,arial,sans-serif,&#8221;ヒラギノ角ゴ Pro W3&#8243;,&#8221;ＭＳ ゴシック&#8221;,&#8221;Osaka&#8221;;<br />
					font-size:12px;<br />
					margin:0 auto;<br />
					padding:0;<br />
					text-align:center;<br />
					width:100%;<br />
				}</p>
				<p>/* General Style Info */<br />
				a{<br />
					color:#003d4c;<br />
					text-decoration:underline;<br />
				}<br />
				a:hover{<br />
					color:#003d4c;<br />
					text-decoration:none;<br />
				}</p>
				<p>a img{<br />
					border:none;<br />
				}</p>
				<p>h1, h2, h3, h4{<br />
					font-weight:normal;<br />
				}</p>
				<p>h1{<br />
					color: #003d4c;<br />
					margin:0.3em 0;<br />
					font-size: 180%;<br />
				}</p>
				<p>h2{<br />
					color:#c6c65b;<br />
					padding-top: 1em;<br />
					margin:0.3em 0;<br />
					font-size: 180%;<br />
				}</p>
				<p>h3{<br />
					color:#c6c65b;<br />
					padding-top:2em;<br />
					font-size: 140%;<br />
				}</p>
				<p>h4{<br />
					color:#c6c65b;<br />
					padding-top:0.5em;<br />
					font-weight:normal;<br />
				}</p>
				<p>em {<br />
					font-size: 12px;<br />
				}</p>
				<p>ul, li {<br />
					margin: 0 12px;<br />
				}</p>
				<p>/* Layout */</p>
				<p>#container{<br />
					background-color:#FFFFFF;<br />
					margin:0 auto;<br />
					padding:0;<br />
					font-size:12px;<br />
					text-align:left;<br />
					width:700px;<br />
					border-left:#E4E4E4 solid 6px;<br />
					border-right:#E4E4E4 solid 6px;<br />
					border-bottom:#E4E4E4 solid 6px;<br />
				}</p>
				<p>#header{<br />
					margin:0 0 2px 10px;<br />
				}</p>
				<p>#content{<br />
					width:700px;<br />
				}<br />
				#footer{<br />
					clear:both;<br />
					font-size:10px;<br />
					text-align:center;<br />
					color:#666666;<br />
					margin:15px 0;<br />
					padding:0;<br />
				}</p>
				<p>/* tables */</p>
				<p>table {<br />
					width: 100%;<br />
					border-top: 1px solid #ccc;<br />
					border-left: 1px solid #ccc;<br />
					border-bottom: 1px solid #ccc;<br />
					color:#333;<br />
					background-color: #fff;<br />
					clear:both;<br />
					padding: 0;<br />
					margin: 0 0 2em 0;<br />
					white-space: normal;<br />
				}<br />
				th {<br />
					background-color: #e2e2e2;<br />
					border-top: 1px solid #fff;<br />
					border-left: 1px solid #fff;<br />
					border-right: 1px solid #003d4c;<br />
					border-bottom: 1px solid #003d4c;<br />
					text-align: center;<br />
					padding:1px 4px;<br />
				}<br />
				table tr td {<br />
					border-right: 1px solid #ddd;<br />
					padding:4px 4px;<br />
					vertical-align:top;<br />
					text-align: center;<br />
				}<br />
				table tr.altRow td {<br />
					background: #f4f4f4;<br />
				}<br />
				table td.actions {<br />
					white-space: nowrap;<br />
				}<br />
				#cakeSqlLog td {<br />
					text-align: left;<br />
					padding: 4px 8px;<br />
					background: #fff;<br />
					border-bottom: 2px solid #ccc;<br />
				}</p>
				<p>/* scaffold show */</p>
				<p>div.related {<br />
					clear:both;<br />
					display:block;<br />
				}<br />
				dl {<br />
					line-height:2em;<br />
					margin:0em 1em;<br />
					float:left;<br />
					width: 400px;<br />
				}<br />
				dt {<br />
					font-weight: bold;<br />
					vertical-align:top;<br />
				}<br />
				dd {<br />
					margin-left:10em;<br />
					margin-top:-2em;<br />
					vertical-align:top;<br />
				}</p>
				<p>/* notices and errors */</p>
				<p>#flashMessage, .error, .error_message {<br />
					color:#900;<br />
					font-size: 16px;<br />
					background-color: #fff;<br />
					margin: 8px 0px;<br />
					font-weight: bold;<br />
				}<br />
				.error_message {<br />
					clear: both;<br />
				}<br />
				.error em {<br />
					font-size: 18px;<br />
					color: #003d4c;<br />
				}<br />
				.notice {<br />
					color: #656565;<br />
					font-size: 14px;<br />
					background-color: #f4f4f4;<br />
					padding: 0.5em;<br />
					margin: 1em 0;<br />
					display:block;<br />
				}<br />
				.tip {<br />
					color: #656565;<br />
					background-color: #ddd;<br />
				}</p>
				<p>/* forms */</p>
				<p>form {<br />
					margin-top: 2em;<br />
				}<br />
				form div{<br />
					vertical-align: text-top;<br />
					margin-left: 1em;<br />
					margin-bottom:2em;<br />
				}<br />
				form div.date{<br />
					margin-left: 0em;<br />
				}<br />
				label {<br />
					display: block;<br />
					width: 140px;<br />
					font-size: 14px;<br />
					padding-right: 20px;<br />
				}<br />
				input[type=checkbox] {<br />
					float: left;<br />
					clear: left;<br />
					margin: 2px 6px 7px 2px;<br />
				}<br />
				input, textarea {<br />
					clear: both;<br />
					display:block;<br />
					font-size: 14px;<br />
					font-family: inherit;<br />
				}<br />
				select {<br />
					clear: both;<br />
					vertical-align: text-bottom;<br />
					font-size: 14px;<br />
					font-family: inherit;<br />
				}<br />
				option {<br />
					font-size: 14px;<br />
					font-family: inherit;<br />
					padding: 0 0.3em;<br />
				}<br />
				input[type=submit] {<br />
					display: inline;<br />
					vertical-align: bottom;<br />
				}<br />
				div.required {<br />
					clear: both;<br />
					color:#222;<br />
					font-weight:bold;<br />
				}<br />
				div.optional {<br />
					clear: both;<br />
					color:#555;<br />
				}<br />
				div.submit {<br />
					clear: both;<br />
					margin-top: 40px;<br />
					margin-left: 140px;<br />
				}<br />
				/* action links */<br />
				ul.actions {<br />
					float: left;<br />
					margin-left:20px;<br />
					width: 200px;<br />
				}<br />
				ul.actions li {<br />
					margin-top: 4px;<br />
				}<br />
				pre {<br />
					padding: 1em;<br />
				}<br />
				[/sourcecode]</p>
				<p>コントローラーは$scaffoldを消して下記のように書き換えます。<br />
				<b>・app/controllers/schedules_controller.php</b><br />
				[sourcecode language='php']<br />
				< ?php<br />
				class SchedulesController extends AppController<br />
				{<br />
					var $name = 'Schedules';</p>
				<p>	function index(){<br />
					}<br />
				}<br />
				?><br />
				[/sourcecode]</p>
				<p>schedulesフォルダ、index.thtmlファイルを作成してください。<br />
				<b>・app/views/schedules/index.thtml</b><br />
				[sourcecode language='php']</p>
				<div style="padding:10px">
				<h1> &#8211; Test &#8211; </h1>
				<p>
					This is View Test!
				</p>
				</div>
				<p>[/sourcecode]</p>
				<p>ついでに「routes.php」も書き換えて、schedules/index.thtmlを最初にアクセスするページに設定しておきます。<br />
				コメント行を除く3行のうちの一番上の行を下記のように書き換えてください。</p>
				<p><b>・app/config/routes.php</b><br />
				[sourcecode language='php']<br />
				$Route->connect (&#8216;/&#8217;, array(&#8216;controller&#8217;=>&#8217;schedules&#8217;, &#8216;action&#8217;=>&#8217;index&#8217;));<br />
				[/sourcecode]</p>
				<p>ここまで出来たら「http://localhost/」にアクセスしてみます。<br />
				下記のような画面が表示され、デザイン・レイアウトが変更されていることを確認できると思います。</p>
				<p><a href='http://www.studio-kingdom.com/wp-content/uploads/2008/02/cakephp_default_style.gif' title='cakephp_default_style.gif'><img src='http://www.studio-kingdom.com/wp-content/uploads/2008/02/cakephp_default_style.thumbnail.gif' alt='cakephp_default_style.gif' /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.studio-kingdom.com/cakephp/cakephp_training/71/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

