How to do it ? Currently i have those routes in my application:
$this->addGet('/poradnik/tag/{tagName}', array('action'=>'tag','controller'=>'index'));
$this->addGet('/poradnik/{categoryName:(?<!\.tag)$}/{title}', array('action'=>'article','controller'=>'index')); // this doesn't work, 404
I had to do
$this->addGet('/poradnik/{categoryName}/{title}', array('action'=>'article','controller'=>'index'));
And check in action if categoryName
is tag
then forward to tag action. How to make working regex ?