2012-06-03 (cakephp2) コントーラーからビューに変数を渡す コントローラー内で set メソッドを使う。 $this->set('username', '山田太郎'); ビューではその変数名をechoすれば良い。 <?php echo $username; ?>