...
Solution
- take code, that does "SetVar" and sets "m_cat_id" from "kUrlManager::show404" and "kUrlManager::prepare404" methods
- add $template parameter to "kApplication::QuickRun" method
- use $template parameter value for:
- setting current template
- setting matching m_cat_id
...