Is a good way to code breadcrumbs?
- create category tables using mysql
- create columns of the parent_id column as necessary
- If the parent_id column is null, this means that this category is the parent, and otherwise, this parent column is the column with the identifier that is marked in the "parent_id" column
- recursive query on the column "parent_id", starting with the current column and the name of the print category. A.
source
share