The category table has a field 'path' and stores the path as a 'Materialized path'; /maincat/subcat1/subsubcat4/ this way I can query the database for all tasks in a certain category (where path like '/maincat/subcat/%' for example).
This method also needs a .htaccess rewrite condition to catch all requests with the url that starts with /cat/ and redirect those to my cat.php page.
I probably could make it myself a lot easier bij using a querystring passing the category id, but I like the names of the categories in the url making it much clearer for the end user where he is.
Is this the (or a) right way to accomplish this? Or is there a much easier way I didn't think of?