function index() { $hoge = $this->_何かの関数(); $homu = $this->_何かの関数(); /* 処理 */ $this->set('',); } function _何かの関数() { /* 処理 */ }
まず関数を定義(実装すべき機能も考えておく)してから、
中身を書くべし。
関数の中身が大きくなりすぎると、理解しづらくなる。
function index() { $hoge = $this->_何かの関数(); $homu = $this->_何かの関数(); /* 処理 */ $this->set('',); } function _何かの関数() { /* 処理 */ }
まず関数を定義(実装すべき機能も考えておく)してから、
中身を書くべし。
関数の中身が大きくなりすぎると、理解しづらくなる。