Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从螺栓扩展中获取内容类型和当前 slug?(PHP)。像这样的 $this->app['content']['current']['slug']。
您应该将记录传递给 twig 函数:{{ mytwigextension(record) }}.
{{ mytwigextension(record) }}