O'Reilly logo

FuelPHP Application Development Blueprints by Sébastien Drouyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementation of the to-do list

Now that we explained the essential ORM features and implemented our relations, it is finally time to build our to-do list. This section assumes you have executed the complete public/test.php script at least once.

Allowing the user to see and change tasks' status

First, we will display the associated tasks when viewing a project's details. For instance, this web page should display all tasks of project with id = 2 after the project's name:

http://mytodolists.app/project/view/2

In order to do that, we can, as we did in Chapter 1, Building Your First FuelPHP Application, dissect the URL and deduce that, in this case, the view action of the Project controller is executed. The action displays project/view; thus, we have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required