Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

  1. take code, that does "SetVar" and sets "m_cat_id" from 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)
  2. move the "404" HTTP header sending out from "kUrlManager::prepare404" method into:
    • "kUrlManager::show404"
    and
    • method
    • "kRewriteUrlProcessor::parseRewriteURL" method (add else, when not caching url)
  3. inline what's left of "kUrlManager::prepare404" methodsadd $template parameter to method into "kRewriteUrlProcessor::parse" method (where inlined method was used)
  4. change "kApplication::QuickRun" method use $template parameter value for:
  5. setting current template
  6. setting matching to do "SetVar" on "t" and "m_cat_id" Web Request parameters as "kUrlManager::show404" did before

Related Discussions

...