第6回ではタスクの追加機能を実装しました。今回は以下の機能を実装します。 タスクの完了 タスクの削除 タスクの編集 完了と未完了のタスクを分離 Tasksコントローラの修正 Tasksコントローラのindexアクションを修正し、doneアクション、editアクション、delアクションを追加しました。addアクションに変更はありません(リスト1)。 リスト1 app/controllers/tasks_controller.php <?php class TasksController extends AppController { var $name = 'Tasks'; var $uses = array('Task'); function index() { $this->set('yet_tasks', $this->Task->findAllByStatus('yet', nu
![第7回 CakePHPで作るToDoアプリ(3) | gihyo.jp](https://cdn-ak-scissors.b.st-hatena.com/image/square/04a2f10f9dd08dac7fb4a226c0bdca0d08ccbd34/height=288;version=1;width=512/https%3A%2F%2Fgihyo.jp%2Fassets%2Fimages%2FICON%2F2007%2F048_cakephp.png)