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.
您何时实际使用/创建 Drupal 7 的模块?因为就像我看到的那样,您几乎可以使用模板。
这就是所谓的关注点分离。模板就是模板。他们应该处理数据表示和布局。数据的生产、检索、存储和处理不应该在模板中进行。在不同模块中实现的清晰分离的功能简化了维护、演进和代码重用。
挂钩核心功能。