CakePHP - (2009/12/15 (火) 10:36:22) の1つ前との変更点
追加された行は緑色になります。
削除された行は赤色になります。
*CakePHP
**Molde モデル
*** find()メソッド
find('all', 'パラメータ') // 全件取得
find('first', 'パラメータ') // 最初の1件取得
** Helper
*** HTML
-tag(string $tag, string $text, array $htmlAttributes, boolean $escape = false)
*** divタグを表示しないようにする
echo $form->submit('保存', array('div'=>false))
*** checkbox
echo $form->input('モデル名.カラム名', array('type' => 'select', 'multiple' => 'checkbox', 'options'=>array('key1'=>'value','key2'=>'value2'), 'selected'=>array('key1')));
■value1
□value2
*** 注意事項
-「var $belongsTo = null;」とするとエラーとなる。
http://bakery.cakephp.org/articles/view/using-the-ajax-helper-for-inplaceeditor-and-inplacecollectioneditor-fields
http://tech.li-pton.com/php/cakephp_assosiation.html
http://cakephp.jp/modules/newbb/viewtopic.php?viewmode=flat&order=DESC&topic_id=1695&forum=6
http://www.cpa-lab.com/tech/081
http://www.garacter.com/notes/CakePHP+Note/ni:5
*CakePHP
**Molde モデル
*** find()メソッド
find('all', 'パラメータ') // 全件取得
find('first', 'パラメータ') // 最初の1件取得
** Helper
*** HTML
-tag(string $tag, string $text, array $htmlAttributes, boolean $escape = false)
<?php echo $html->tag('span', 'Hello World.', array('class' => 'welcome'));?>
*** divタグを表示しないようにする
echo $form->submit('保存', array('div'=>false))
*** checkbox
echo $form->input('モデル名.カラム名', array('type' => 'select', 'multiple' => 'checkbox', 'options'=>array('key1'=>'value','key2'=>'value2'), 'selected'=>array('key1')));
■value1
□value2
*** 注意事項
-「var $belongsTo = null;」とするとエラーとなる。
http://bakery.cakephp.org/articles/view/using-the-ajax-helper-for-inplaceeditor-and-inplacecollectioneditor-fields
http://tech.li-pton.com/php/cakephp_assosiation.html
http://cakephp.jp/modules/newbb/viewtopic.php?viewmode=flat&order=DESC&topic_id=1695&forum=6
http://www.cpa-lab.com/tech/081
http://www.garacter.com/notes/CakePHP+Note/ni:5
表示オプション
横に並べて表示:
変化行の前後のみ表示: