1

Revise the application so that the list on the main page is generated based on data from their database.

For now, just add links with empty href. Add an image. Rerun it on Flex to make it look something like this:

2

Make sure that:

  • The Image and Description links also take data from the database.
  • Get rid of separate controllers for objects and make two universal ones for info and image.
  • In general, it should work as usual.

3

Rewrite ObjectController.php so that it contains logic for both ObjectImageController.php and ObjectInfoController.php, i.e., the decision to display an image, brief information, or full information is made based on the get parameters. For example:

  • http://localhost:9007/space-object/1 – general information
  • http://localhost:9007/space-object/1?show=image – displays an image
  • http://localhost:9007/space-object/1?show=info – displays full information

Update all links accordingly. Remove the ObjectImageController.php and ObjectInfoController.php controllers.

4

To be completed:

  1. Add a filter for the full description.
  2. Add the type “All” to the list of types, for which filtering by type will not occur.
  3. Design the form using Bootstrap (https://getbootstrap.com/docs/5.0/forms/layout/#gutters).
  4. Add a numeric field to the model and add a filter for it [optional]

Something like this:

5
  1. Add a table to the database that will store possible object types. The table must have at least three fields: id, name, and image.
  2. Add a page from which new object types can be added.
  3. In the navigation, as well as when adding new objects to the list, display values from this table.
6

Here we will look at deleting objects. It’s so simple that I can’t even think of a task 😢

7

Implement the ability to edit objects