/
Make "kApplication::QuickRun" reusable [5.2.2-B1]
Make "kApplication::QuickRun" reusable [5.2.2-B1]
Right now the "kApplication::QuickRun
" method does this:
- discards any previously parsed template content
- renders current template (obtained via "
GetVar
" call) content instead
This isn't very flexible.
Solution
- change "kApplication::QuickRun" method by adding an optional "$template" parameter (when passed set it's value into "t" parameter of Web Request, that is used later anyway)
- move the "404" HTTP header sending out from "kUrlManager::prepare404" method into:
- "kUrlManager::show404" method
- "kRewriteUrlProcessor::parseRewriteURL" method (add else, when not caching url)
- inline what's left of "kUrlManager::prepare404" method into "kRewriteUrlProcessor::parse" method (where inlined method was used)
- change "kApplication::QuickRun" method to do "SetVar" on "t" and "m_cat_id" Web Request parameters as "kUrlManager::show404" did before
Related Discussions
- The "404 Not Found" page title comes from other page [5.2.2-B1]
- [system log] Special template for fatal errors and uncatched exceptions [5.3.0-B1]
- Show "No Permission" page inline [5.2.2-B1]