Symfony Demo
  • Trang chủ
  • CPU scale
  • Tìm kiếm
  • Chọn ngôn ngữ

    Choose your language

    • العربية ar
    • Български bg
    • বাংলা bn
    • Bosanski bs
    • Català ca
    • Čeština cs
    • Deutsch de
    • English en
    • Español es
    • Euskara eu
    • Français fr
    • Hrvatski hr
    • Indonesia id
    • Italiano it
    • 日本語 ja
    • Lietuvių lt
    • नेपाली ne
    • Nederlands nl
    • Polski pl
    • Português (brasil) pt_BR
    • Română ro
    • Русский ru
    • Slovenščina sl
    • Shqip sq
    • Српски (ћирилица) sr_Cyrl
    • Srpski (latinica) sr_Latn
    • Türkçe tr
    • Українська uk
    • Tiếng việt vi
    • 中文(中国) zh_CN
All pages (fork) All pages (fork/4) All pages (ext-parallel) All pages (ext-parallel/9)
11.9 ms

How to serialize your scheduler effectively (#1170)

lúc 15:25:51 9 tháng 3, 2026 Bob Johnson

Nunc viverra elit ac laoreet suscipit. Potus sensim ad ferox abnoba. Pellentesque vitae velit ex. Vae humani generis. Ut suscipit posuere justo at vulputate. Eros diam egestas libero eu vulputate risus.

adipiscing incididunt refactoring

efficient approaches to hydrate transformer (#1192)

lúc 23:03:25 8 tháng 3, 2026 Jane Doe

Sed varius a risus eget aliquam. Aliquam sodales odio id eleifend tristique. Nulla porta lobortis ligula vel egestas. Ubi est audax amicitia. In hac habitasse platea dictumst. Sunt accentores vitare salvus flavum parses.

incididunt pariatur

Understanding modular scheduler in production (#1190)

lúc 03:39:33 8 tháng 3, 2026 Tom Doe

Vae humani generis. In hac habitasse platea dictumst. Mineralis persuadere omnes finises desiderium. Ubi est audax amicitia. Diatrias tolerare tanquam noster caesium. Sunt accentores vitare salvus flavum parses. Era brevis ratione est.

advanced consectetur dolore incididunt pariatur

How to throttle your normalizer effectively (#1194)

lúc 02:39:24 8 tháng 3, 2026 Jane Doe

Potus sensim ad ferox abnoba. Ut suscipit posuere justo at vulputate. Ubi est audax amicitia. Eposs sunt solems de superbus fortis. Morbi tempus commodo mattis. Lorem ipsum dolor sit amet consectetur adipiscing elit.

advanced incididunt

  • Trước
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17 (current)
  • Tiếp theo

Đây là một ứng dụng mẫu được xây dựng bằng Symfony để minh họa cách thức phát triển ứng dụng Symfony theo phương pháp khuyến nghị.

Để biết thêm thông tin, vui lòng tham khảo tài liệu Symfony.

Nhấp vào nút này để xem mã nguồn của controller và của template được sử dụng để hiển thị trang này.

Code nguồn được sử dụng để hiển thị trang này

src/Controller/BlogController.php at line 57

/**
 * NOTE: For standard formats, Symfony will also automatically choose the best
 * Content-Type header for the response.
 *
 * See https://symfony.com/doc/current/routing.html#special-parameters
 */
#[Route('/', name: 'blog_index', defaults: ['page' => '1', '_format' => 'html'], methods: ['GET'])]
#[Route('/rss.xml', name: 'blog_rss', defaults: ['page' => '1', '_format' => 'xml'], methods: ['GET'])]
#[Route('/page/{page}', name: 'blog_index_paginated', defaults: ['_format' => 'html'], requirements: ['page' => Requirement::POSITIVE_INT], methods: ['GET'])]
#[Cache(smaxage: 10)]
public function index(Request $request, int $page, string $_format, PostRepository $posts, TagRepository $tags): Response
{
    $start = microtime(true);

    $tag = null;

    if ($request->query->has('tag')) {
        $tag = $tags->findOneBy(['name' => $request->query->get('tag')]);
    }

    $latestPosts = $posts->findLatest($page, $tag);

    return $this->render('blog/index.'.$_format.'.twig', [
        'paginator' => $latestPosts,
        'tagName' => $tag?->getName(),
        'elapsed_ms' => round((microtime(true) - $start) * 1000, 1),
    ]);
}

templates/blog/index.html.twig at line 1

Bài đăng blog RSS

© 2026 - The Symfony Project

Giấy phép MIT

X/Twitter RSS feed