<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="http://program.alphabrend.com/modules/pukiwiki/skin/rss.xml" ?>
<rdf:RDF 
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xml:lang="ja">

 <channel rdf:about="http://program.alphabrend.com/modules/pukiwiki/38.html">
  <title>アルファブレンド　プログラミングチップス-TIPS/CakePHP</title>
  <link>http://program.alphabrend.com/modules/pukiwiki/38.html</link>
  <description>CakePHPは</description>
  <dc:date>2008-07-17T10:52:50+09:00</dc:date>
  <items>
   <rdf:Seq>
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/44.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/59.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/38.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/41.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/51.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/55.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/54.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/47.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/39.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/46.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/43.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/42.html" />
    <rdf:li rdf:resource="http://program.alphabrend.com/modules/pukiwiki/40.html" />

   </rdf:Seq>
  </items>
 </channel>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/44.html">
 <title>複数形</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/44.html</link>
 <dc:date>2008-05-24T12:18:55+09:00</dc:date>
 <description>[付箋:1]ｆｆ&amp;#182;ちゃんとフレームワークをいじらなくても		動作を変更できるようになっている。...複数形 モデルの名前を設定すると、		自動的にそれを複数形にしたテーブルが参照される。		例えばitem→itemsだし、		category→categoriesになる。		ただsをつけるだけじゃないようにちゃんと設定されている。どこでそういうことをしているのだろうか見てみると、		inflector.phpのtableizeという関数で行われていた。		そこをよく見ると、		対応して...</description>
<content:encoded>
<![CDATA[
複数形<br />
モデルの名前を設定すると、		自動的にそれを複数形にしたテーブルが参照される。		例えばitem→itemsだし、		category→categoriesになる。		ただsをつけるだけじゃないようにちゃんと設定されている。<br />
どこでそういうことをしているのだろうか見てみると、		inflector.phpのtableizeという関数で行われていた。		そこをよく見ると、		対応していない複数形も自分で設定できるらしい。<br />
設定方法は、config/inflections.php		にどんどん設定を追加していけばいいらしい。<br />
ちゃんとフレームワークをいじらなくても		動作を変更できるようになっている。
]]>
</content:encoded>
<dc:creator>dala, ゲスト</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/59.html">
 <title>scripts_for_layoutとは？</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/59.html</link>
 <dc:date>2008-03-21T23:03:25+09:00</dc:date>
 <description>scripts_for_layoutとは？ いつのまにやらlayoutにscripts_for_layoutという変数が出力されている。		これは何だろう？viewを見てみると、addScriptというメソッドがある。		これを利用すれば良いようだが、どこで使うかが分からない。		調べてみると、各々のコンテンツの中で使えば		そのスクリプトがhead内に入るらしい。例えば以下のように使う。index.ctph2○○の一覧/h2?php foeach… ??php endforeach ??php...</description>
<content:encoded>
<![CDATA[
scripts_for_layoutとは？<br />
いつのまにやらlayoutにscripts_for_layoutという変数が出力されている。		これは何だろう？<br />
viewを見てみると、addScriptというメソッドがある。		これを利用すれば良いようだが、どこで使うかが分からない。		調べてみると、各々のコンテンツの中で使えば		そのスクリプトがhead内に入るらしい。<br />
例えば以下のように使う。<br />
index.ctp<br />
&lt;h2&gt;○○の一覧&lt;/h2&gt;<br />
&lt;?php foeach… ?&gt;<br />
&lt;?php endforeach ?&gt;<br />
&lt;?php $this-&gt;addScript($javascript-&gt;codeBlock(’alert("alert in head!");)) ?&gt;<br />
すると出力時は<br />
&lt;html …&gt;<br />
&lt;head&gt;<br />
　：<br />
　：<br />
&lt;script type="text/javascript"&gt;alert("alert in head!");&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
　：<br />
という感じ。
]]>
</content:encoded>
<dc:creator>dala</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/38.html">
 <title>TIPS/CakePHP</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/38.html</link>
 <dc:date>2008-03-10T20:11:46+09:00</dc:date>
 <description>CakePHPは		超簡単で軽いPHPフレームワークです。エラーページの動作変更サブドメイン毎に動作を変えるフォームで複数アイテムを使う携帯対応複数形bake.phpの使用cronを使うCSSを分割するDBコンフィグを動的に追加query関数のキャッシュscripts_for_layoutとは？userDefinedバリデーション...</description>
<content:encoded>
<![CDATA[
CakePHPは		超簡単で軽いPHPフレームワークです。<br />
エラーページの動作変更<br />
サブドメイン毎に動作を変える<br />
フォームで複数アイテムを使う<br />
携帯対応<br />
複数形<br />
bake.phpの使用<br />
cronを使う<br />
CSSを分割する<br />
DBコンフィグを動的に追加<br />
query関数のキャッシュ<br />
scripts_for_layoutとは？<br />
userDefinedバリデーション
]]>
</content:encoded>
<dc:creator>dala</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/41.html">
 <title>cronを使う</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/41.html</link>
 <dc:date>2008-03-06T12:33:20+09:00</dc:date>
 <description>ファイルはapp/script/等を作ったりして		WEBに公開されないところに配置しておきましょう。&amp;#182;[付箋:1]あああ...cronを使う cakeでcronを使うのは非常に簡単です。		例えばcronに実行させるファイルをwebroot/files以下においたとすると、		http://host.com/users/check/		という、usersコントローラのcheckアクションを実行したい場合?php    $_GET['url'] = &quot;users/check/&quot;;   ...</description>
<content:encoded>
<![CDATA[
cronを使う<br />
cakeでcronを使うのは非常に簡単です。		例えばcronに実行させるファイルをwebroot/files以下においたとすると、		http://host.com/users/check/		という、usersコントローラのcheckアクションを実行したい場合<br />
&lt;?php<br />
    $_GET['url'] = "users/check/";<br />
    require_once( dirname( dirname(__FILE__) ) . "/index.php" );<br />
?&gt;<br />
と、たったこれだけで実行可能です。<br />
ファイルはapp/script/等を作ったりして		WEBに公開されないところに配置しておきましょう。
]]>
</content:encoded>
<dc:creator>dala</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/51.html">
 <title>query関数のキャッシュ</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/51.html</link>
 <dc:date>2008-02-29T14:48:58+09:00</dc:date>
 <description>[付箋:1]助かりました！3時間ほどハマってました...query関数のキャッシュ モデルにはquery関数があるが、		どうやら1.2alphaバージョンだと勝手にキャッシュされてしまっているらしく、		数回同じクエリを実行すると同じ値がかえってくる。これを解除するには、$this-query( $query, false );としてやる必要がある。		他のバージョンは未確認。...</description>
<content:encoded>
<![CDATA[
query関数のキャッシュ<br />
モデルにはquery関数があるが、		どうやら1.2alphaバージョンだと勝手にキャッシュされてしまっているらしく、		数回同じクエリを実行すると同じ値がかえってくる。<br />
これを解除するには、<br />
$this-&gt;query( $query, false );<br />
としてやる必要がある。		他のバージョンは未確認。
]]>
</content:encoded>
<dc:creator>dala, ゲスト</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/55.html">
 <title>フォームで複数アイテムを使う</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/55.html</link>
 <dc:date>2008-02-26T13:47:40+09:00</dc:date>
 <description>フォームから配列で複数アイテムを使う 1.1から移行した時はなんだか良く分からないなあと思うけど、		...フォームから配列で複数アイテムを使う CakePHP1.2ではフォームの作成にはhtmlヘルパーを使わず、		formヘルパーを使うようになった。		使い方は以下のような感じ。 ?php$form-create(’User’);$form-input(’name’);$form-end(’Submit’);?1.1から移行した時はなんだか良く分からないなあと思うけど、		使っていくうちに$...</description>
<content:encoded>
<![CDATA[
フォームから配列で複数アイテムを使う<br />
CakePHP1.2ではフォームの作成にはhtmlヘルパーを使わず、		formヘルパーを使うようになった。		使い方は以下のような感じ。<br />
&lt; ?php<br />
$form-&gt;create(’User’);<br />
$form-&gt;input(’name’);<br />
$form-&gt;end(’Submit’);<br />
?&gt;<br />
1.1から移行した時はなんだか良く分からないなあと思うけど、		使っていくうちに$form-&gt;inputが色々出来ることに気付く。		誕生日なんかも$form-&gt;input(’birthday’, array(’type’ =&gt; ‘date’));		みたいな感じで出来るので面白い。		月が英語で出るのがやっかいだが。<br />
例えば以下のようなデータ構造の場合。		User<br />
 Item<br />
 Item<br />
 Item<br />
このようにItemが複数ある場合もフォームで作れる。		もしかしたら1.2betaバージョン以降じゃないと駄目かもしれないが、		以下のように作成できる。<br />
&lt;?php<br />
$form-&gt;create(’User’);<br />
$form-&gt;input(’name’);<br />
$form-&gt;input(’Item/0/name’);<br />
$form-&gt;input(’Item/1/name’);<br />
$form-&gt;input(’Item/2/name’);<br />
?&gt;<br />
これで		$this-&gt;data[’Item’]に複数のItemが入る。		色々出来るんだなあと思った。<br />
後は、app_model.phpにそれようのバリデーション関数や		保存関数を加えておけばもっと便利に。<br />
function insertList($rows) {<br />
    foreach ($rows as $row) {<br />
        $this-&gt;create($row);<br />
        if (!$this-&gt;save()) return false;<br />
    }<br />
    return true;<br />
}<br />
みたいな感じ。
]]>
</content:encoded>
<dc:creator>dala</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/54.html">
 <title>userDefinedバリデーション</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/54.html</link>
 <dc:date>2008-02-25T23:24:06+09:00</dc:date>
 <description>    return preg_match(’/d{2,4}-d{3,4}-d{4}/’) ? true : false;...userDefinedバリデーションを使う CakePHPの1.2のバリデーションにuserDefinedというのがある。		これを利用すればフレームワークを汚さなくても		独自のバリデーションを加えることが可能。		具体的な使い方は以下の通り。まずは特定のモデルもしくはapp_model.php等に		専用のバリデーション関数を追加する。		例えば以下のような関...</description>
<content:encoded>
<![CDATA[
userDefinedバリデーションを使う<br />
CakePHPの1.2のバリデーションにuserDefinedというのがある。		これを利用すればフレームワークを汚さなくても		独自のバリデーションを加えることが可能。		具体的な使い方は以下の通り。<br />
まずは特定のモデルもしくはapp_model.php等に		専用のバリデーション関数を追加する。		例えば以下のような関数。<br />
function tel($data) {<br />
    return preg_match(’/d{2,4}-d{3,4}-d{4}/’) ? true : false;<br />
}<br />
そしてモデルのバリデーション設定には以下のように設定。<br />
var $validate = array(<br />
   ‘tel’ =&gt; array(’rule’ =&gt; array(’userDefined’, ‘User’, ‘tel’)),<br />
);<br />
配列の3つめに先ほどのtelを記入。		2番目はよく分からないけどモデル名を書いておけばよいと思う。		別のモデルのも使えるよと言うことだろうか。
]]>
</content:encoded>
<dc:creator>dala</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/47.html">
 <title>DBコンフィグを動的に追加</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/47.html</link>
 <dc:date>2007-07-22T22:41:27+09:00</dc:date>
 <description>$this-MyModel-addDbConfig( 'test1', 'localhost', 'login', 'password', 'db' );&amp;#182;のようにする。		気になる人は外部から呼ぶ時はsetDbConfig?を作ってくれ。&amp;#182;function addDbConfig( $name, $host, $login, $password, $database )$this-MyModel-addDbConfig( 'test1', 'localhost', 'log...</description>
<content:encoded>
<![CDATA[
DBコンフィグを動的に追加<br />
こんな感じの関数をモデルに追加。<br />
function addDbConfig( $name, $host, $login, $password, $database )<br />
{<br />
    $manager =&amp; ConnectionManager::getInstance();<br />
    if( empty( $manager-&gt;config-&gt;{$name} ) )<br />
    {<br />
        $manager-&gt;config-&gt;{$name} = array(<br />
            'driver' =&gt; 'mysql',<br />
            'connect' =&gt; 'mysql_connect',<br />
            'host' =&gt; $host,<br />
            'login' =&gt; $login,<br />
            'password' =&gt; $password,<br />
            'database' =&gt; $database,<br />
            'prefix' =&gt; '',<br />
        );<br />
        $manager-&gt;_connectionsEnum = array();<br />
    }<br />
}<br />
さいごの代入は設定キャッシュのクリア。		使用する時は、<br />
$this-&gt;MyModel-&gt;addDbConfig( 'test1', 'localhost', 'login', 'password', 'db' );<br />
$this-&gt;MyModel-&gt;useDbConfig = 'test1';<br />
のようにする。		気になる人は外部から呼ぶ時はsetDbConfigを作ってくれ。
]]>
</content:encoded>
<dc:creator>dala</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/39.html">
 <title>携帯対応</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/39.html</link>
 <dc:date>2007-05-20T08:51:53+09:00</dc:date>
 <description>[付箋:1]い９い&amp;#182;			$action	= &quot;i_&quot; . ( $action ? $action : $this-action );			$layout	= &quot;i_&quot; . $this-layout;			$action = &quot;j_&quot; . ( $action ? $action : $this-action );			$layout	= &quot;j_&quot; . $this-layout;&amp;#182;function render( $action = null, $layout = null, ...</description>
<content:encoded>
<![CDATA[
携帯によって表示を変える<br />
まず、cakeのライブラリの中にある		app_controller.phpを		appフォルダにコピーします。<br />
次にrender関数をオーバーライドするため		以下の内容を書き込みます。<br />
function render( $action = null, $layout = null, $file = null )<br />
{<br />
	if( !empty( $_SERVER["HTTP_USER_AGENT"] ) )<br />
	{<br />
		$ua	= $_SERVER["HTTP_USER_AGENT"];<br />
		if( strpos( $ua, "DoCoMo" ) !== FALSE ){<br />
			$action	= "i_" . ( $action ? $action : $this-&gt;action );<br />
			$layout	= "i_" . $this-&gt;layout;<br />
		}else if( strpos( $ua, "UP.Browser" ) !== FALSE ){<br />
			$action = "a_" . ( $action ? $action : $this-&gt;action );<br />
			$layout	= "a_" . $this-&gt;layout;<br />
		}else if(<br />
			strpos( $ua, "SoftBank" ) !== FALSE ||<br />
			strpos( $ua, "Vodafone" ) !== FALSE ||<br />
			strpos( $ua, "J-PHONE" ) !== FALSE ){<br />
			$action = "j_" . ( $action ? $action : $this-&gt;action );<br />
			$layout	= "j_" . $this-&gt;layout;<br />
		}<br />
	}<br />
	return parent::render( $action, $layout, $file );<br />
}<br />
このようにして携帯端末チェックを行うと、		個別のコントローラーは全くいじることなく、		携帯用にビューテンプレートを用意しておけば		自動的にそれが表示されます。<br />
たとえば上記の例では、		/test/view		が表示された時、		PCではview.thtmlが使用されますが、		iモードだとi_view.thtml、		auだとa_view.thtml		が自動的に選択されて表示されます。
]]>
</content:encoded>
<dc:creator>dala, ゲスト</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/46.html">
 <title>CSSを分割する</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/46.html</link>
 <dc:date>2006-12-01T16:53:29+09:00</dc:date>
 <description>CSSを分割する cssの定義が多くなったら		やはりファイルを分割して分けたくなります。cssの読み込みはレイアウト側で行っているため、		個々のビューで行うことはできません。		ですので別の方法を使用することになります。		今回は２つの方法を説明します。一つめはアクションでsetする方法です。		専用の配列を決めておき、		コントローラにsetします$css_array = array( 'form', 'div' );$this-set( 'css_array', $css_array )...</description>
<content:encoded>
<![CDATA[
CSSを分割する<br />
cssの定義が多くなったら		やはりファイルを分割して分けたくなります。<br />
cssの読み込みはレイアウト側で行っているため、		個々のビューで行うことはできません。		ですので別の方法を使用することになります。		今回は２つの方法を説明します。<br />
一つめはアクションでsetする方法です。		専用の配列を決めておき、		コントローラにsetします<br />
$css_array = array( 'form', 'div' );<br />
$this-&gt;set( 'css_array', $css_array );<br />
あとはレイアウトファイルにてforeachで回すだけです。<br />
&lt;?php foreach( $css_array as $row ){ ?&gt;<br />
	&lt;?php echo $html-&gt;css( $row ); ?&gt;<br />
&lt;?php } ?&gt;<br />
ただ、上記の方法ではいちいちsetするのが面倒くさいので、		アクション毎に自動的に読み込むようにします。<br />
専用のCSSヘルパーを作成し、		レイアウトに以下の構文を追加します。<br />
&lt;?php echo $css-&gt;css( empty( $css_specify ) ? '' : $css_specify ); ?&gt;<br />
たったこれだけで、		例えば/users/list/にアクセスした時は		css/users_list.cssが読み込まれるようになります。		$css_specifyを指定すれば指定したものを代わりに読み込みます。		一応ファイルがない時は何も出力しないようになっています。		こっちの方が楽ですね。<br />
CSSヘルパーは以下になります。		HTMLヘルパーをぱくっただけです。<br />
class CssHelper extends Helper<br />
{<br />
	var $helpers		= array( 'Html' );<br />
	function css( $path = '', $rel = 'stylesheet', $htmlAttributes = null, $return = false)<br />
	{<br />
		if( !$path )<br />
		{<br />
			$path	= $this-&gt;params['controller'] . '_' . $this-&gt;action;<br />
		}<br />
		$url	= "{$this-&gt;webroot}" . (COMPRESS_CSS ? 'c' : '') . CSS_URL . $this-&gt;themeWeb . $path . ".css";<br />
		$fpath	= CSS . $path . '.css';<br />
		if( !file_exists( $fpath ) )	return '';<br />
		if ($rel == 'import') {<br />
			return $this-&gt;output(sprintf($this-&gt;tags['style'], $this-&gt;Html-&gt;parseHtmlOptions($htmlAttributes, null, '', ' '), '@import url(' . $url . ');'), $return);<br />
		} else {<br />
			return $this-&gt;output(sprintf($this-&gt;tags['css'], $rel, $url, $this-&gt;Html-&gt;parseHtmlOptions($htmlAttributes, null, '', ' ')), $return);<br />
		}<br />
	}<br />
}
]]>
</content:encoded>
<dc:creator>dala</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/43.html">
 <title>エラーページの動作変更</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/43.html</link>
 <dc:date>2006-09-24T02:05:13+09:00</dc:date>
 <description>エラーページの動作変更 通常コントローラやビューが正しく設定されていない場合		CakePHP独自のエラーメッセージが表示されます。それを変えたい場合、		app/error.phpを作成し、AppErrorクラスを作成します。		例えばトップにリダイレクトしたい場合は以下になります。class AppError extends ErrorHandler{    function __construct( $method, $messages )    {        $this-contro...</description>
<content:encoded>
<![CDATA[
エラーページの動作変更<br />
通常コントローラやビューが正しく設定されていない場合		CakePHP独自のエラーメッセージが表示されます。<br />
それを変えたい場合、		app/error.phpを作成し、AppErrorクラスを作成します。		例えばトップにリダイレクトしたい場合は以下になります。<br />
class AppError extends ErrorHandler<br />
{<br />
    function __construct( $method, $messages )<br />
    {<br />
        $this-&gt;controller =&amp; new AppController();<br />
        $this-&gt;controller-&gt;redirect( "/", 301 );<br />
    }<br />
}
]]>
</content:encoded>
<dc:creator>dala</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/42.html">
 <title>サブドメイン毎に動作を変える</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/42.html</link>
 <dc:date>2006-09-23T21:42:16+09:00</dc:date>
 <description>でも設定によって同じindex.phpを参照しても		サブドメイン毎に表示を変えることが可能。例えばwww.domain.comとwww2.domain.comでそれぞれ		main/indexとwww2_main/indexを参照させたい時、		bootstrap.phpに以下のように書くと良い。}&amp;#182;でも...サブドメイン毎に動作を変える 通常サブドメインで運用する場合、		サブドメイン毎にappフォルダを配置しなければならない。でも設定によって同じindex.phpを参照しても		...</description>
<content:encoded>
<![CDATA[
サブドメイン毎に動作を変える<br />
通常サブドメインで運用する場合、		サブドメイン毎にappフォルダを配置しなければならない。<br />
でも設定によって同じindex.phpを参照しても		サブドメイン毎に表示を変えることが可能。<br />
例えばwww.domain.comとwww2.domain.comでそれぞれ		main/indexとwww2_main/indexを参照させたい時、		bootstrap.phpに以下のように書くと良い。<br />
if (env("HTTP_HOST") == "www2.domain.com") {<br />
    $_GET["url"] = "www2_" . $_GET["url"];<br />
}
]]>
</content:encoded>
<dc:creator>dala</dc:creator>
</item>

<item rdf:about="http://program.alphabrend.com/modules/pukiwiki/40.html">
 <title>bake.phpの使用</title>
 <link>http://program.alphabrend.com/modules/pukiwiki/40.html</link>
 <dc:date>2006-08-16T13:53:07+09:00</dc:date>
 <description>付属のbake.phpを使用すると		勝手にファイルを作成してくれます。		bake.phpは		cake/scripts/bake.phpにあります。プロジェクトの作成プロジェクトの作成  ↑自動的にプロジェクトに必要なファイルを新規作成します。		入力方法は以下のようになります。bake.php -project /home/user/baketestbaketestフォルダも勝手に作ってくれます。Look okay?というメッセージにはyを入力してください。		これで作成を開始します。Do...</description>
<content:encoded>
<![CDATA[
付属のbake.phpを使用すると		勝手にファイルを作成してくれます。		bake.phpは		cake/scripts/bake.phpにあります。<br />
プロジェクトの作成<br />
プロジェクトの作成  ↑<br />
自動的にプロジェクトに必要なファイルを新規作成します。		入力方法は以下のようになります。<br />
bake.php -project /home/user/baketest<br />
baketestフォルダも勝手に作ってくれます。<br />
Look okay?<br />
というメッセージにはyを入力してください。		これで作成を開始します。<br />
Do you want verbose output?<br />
というメッセージにyを入力すると、		いろいろ途中結果を出力してくれます。<br />
以上でプロジェクトの作成は終了です。		設定を行ってください。
]]>
</content:encoded>
<dc:creator>dala</dc:creator>
</item>


</rdf:RDF>