atk4/atk4-addons — comment on commit d27b79255fd7abd118a4415daf771118a3847101
File:  line 0
By romaninsh:

Can you please refactor into "Controller_PatternRouter" ?

Another idea is to start numbering arguments from zero and reverse key/values, then this is possible:

->addRule("(news\/.*)", "news_item", array("id","action"))

I also think you need to use the pattern matching for the arguments if they are present (then you can ax the 'rp'):

->addRule('news/([0-9]*)-.*', 'news_item', array('id'))