2008年11月27日木曜日

jQuery:指定した条件でテーブルの行を並び替える

http://developmentor.lrlab.to/postal/jquery/jquery.tablesorter/basic1.html

PHPでメール送信する場合にメールサーバで拒否されないために

http://www.ilovex.co.jp/Division/ITD/archives/2007/08/php_2.html

2008年11月20日木曜日

cakephp: レイアウトの使用

レイアウトの使用
/app/views/layouts/temp.thtml

<html>
<head>
<title><?=$title_for_layout?></title>
</head>
<body>
<?=$content_for_layout?>
</body>
</html>

コントローラー内
var $layout = "temp";
functon hoge(){
$this->pageTitle = "タイトル";
}

エレメントの使用
/app/views/elements/ele.thtml

テンプレート内
<?=$this->renderElement("ele",array("message" => "メッセージ"))?>

cakephp:デフォルトとは違うDBとTableを使用する時のmodelの設定

class Hoge extends AppModel {

var $name = 'Hoge';
var $useTable = 'H_Hoge';
var $useDbConfig = "hogehoge";
var $primaryKey = "hoge_id";
}