In the urlManager i created the rule:
'city/<id:\d+>/<province:[\w\-]+>/<municipality:[\w\-]+>/<city:[\w\-]+>' => 'city/view',
So i can go to http://domain.dev/ci...en/s-graveland/ and the id 1 will make sure i get the right city.
So far so good! But how i can create the url in my website using CHtml:link that goes to the URL just mentioned. Because the slug in the database is saved as 'noord-holland-wijdemeren-s-graveland' and not 'noord-holland/wijdemeren/s-graveland'.
So my city record looks like this in the table:
id_city country_id province municipality city sluge 1 1 Noord-Holland Wijdemeren 's-Graveland noord-holland-wijdemeren-s-graveland
Any ideas/hints/comments on my approach?