Shop Project - Documentation

Article Flow & Performance Architecture

From tile click to article detail, including main diagnostics and architectural guidelines for the rendering process.

🗺️ Stage 0 | 📚 Draft | 📟 2026 07 05 | 📍 Article Flow

Troubleshooting Checklist

  • Is id present in URL and greater than 0?
  • Does getArticleById(id) return an array?
  • Does router set page to article and not Tiles_of_article?
  • Is access control allowing the requested page?

Architectural Guideline: URL & Image Generation

To avoid the heavy "N+1 loop problem" and double iterations within the Map layer, the logical processing of article-specific data (such as routing URLs via cRouter::getArticleUrl and image paths via buildArticleImageSrc) is intentionally executed inline within the view loops. This heavily optimizes rendering performance.