Hello! I decided to create categories with infinite nesting. Of course in practice will not exceed 5.
There is a base
With columns: id, name, url, parent .
And url http://site.ru/catalog/category/category/category
How to correctly identify the current category by checking all parental existence? Maybe there are ready solutions for codeigniter?
Everything would be simple if the url had their id. How to do here?
You need to get the id categories, check the chain for correctness and not to create a strong load on the database.