by shigemk2

当面は技術的なことしか書かない

関数の組み立て方

function index() {
  $hoge = $this->_何かの関数();
  $homu = $this->_何かの関数();
  /* 処理 */ 
  $this->set('',);
}
function _何かの関数() {
  /* 処理 */ 
}

まず関数を定義(実装すべき機能も考えておく)してから、
中身を書くべし。
関数の中身が大きくなりすぎると、理解しづらくなる。