MVC trong Drupal

Drupal được thiết kế theo mô hình MVC tuy nhiên chưa thật rõ lắm giữa controller mà model. Saiiiiiiiii
View: Theme
Controller: bootstrap( bao gồm hook)
Model: module

5 Responses to “MVC trong Drupal”


  1. 4 loto November 17, 2011 at 6:52 am

    nóng tính thế! hiểu chết liền =)) =)).
    Theo tôi hiểu thì nó là khác cơ =))
    cụ thể là view: theme, css, tpl. Controller: hooks, path. Model (thao tác database), module nó chứa cả hook cả theme =)) viết thế hiểu chết liền

  2. 5 loto November 18, 2011 at 10:59 am

    :| vớ vẩn gì. Có gì nói đấy thôi, blog của người thì người viết, tôi bình luận là chuyện của tôi, ảnh hưởng gì thời tiết nhờ.
    Tiện đây người cho tôi hỏi cái: MVC trong drupal cụ thể là
    View: theme
    Controller:hooks
    Model: các file.module

    1. Vậy khi 1 HTTP request gửi đến thằng view thằng view, thằng controller sẽ đưa thông báo cho thằng model xử lý và khi xong rồi thì thằng view sẽ lấy data từ thằng model xử lý và hiển thị ra. vậy cơ chế lấy dữ liệu thông qua thành phần gì?
    2. Lúc một HTTP request gửi yêu cầu. Thì làm sao biết được module nào sẽ được gọi và hook nào sẽ làm việc. Có phải thông qua query_cript? không
    ví dụ cụ thể như đăng nhập: sau khi gõ username, password và nhấn enter thì làm sao mà module đăng nhập biết mà hoạt động ? trong khi có nhiều submit?

    Bạn giải thích hộ tôi với. Tôi đang nghĩ mãi không ra được. Hihi thanks nhá(tôi gà gà mong bạn chỉ giúp)


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Status

Error: Please make sure the Twitter account is public.

RSS Drupal Plant

  • Drupalcon: Create a Personalized Schedule for DrupalCon
    We’ve launched a new feature to help you plan your days at DrupalCon Denver. It’s simple to use, just log into your Drupal.org account (the one you used to register for DrupalCon) and then visit the Schedule page. There, you will find a list of DrupalCon events organized by day and time. Click on the title of each separate event listing, and conveniently loc […]
  • EchoDitto Tech Blog: Introducing the Backbone Module for Drupal
  • Drupal Association News: Global Drupal Days on Friday, February 24
    This Friday, February 24, 2012 many of our community leaders are hosting low-cost or free Drupal Trainings through a new initiative we are forming called Drupal Days. While the Drupal Association will officially launch its Drupal Days program in June, 2012, the Drupal Association is very pleased and encouraged to see trainings taking place this week all over […]
  • LevelTen Interactive: Just Released: 5 New Drupal Apps for Open Enteprise
    Making Drupal more accessible is a never ending quest - but we just hit a big milestone. Just released: five new Drupal apps for Open Enterprise covering some of the most requested features from our clients. These new apps join the existing apps such as the blog to give site builders the essential recipes many sites need in a handy one click plug-n-play apps […]
  • Metal Toad: Using the Drupal Batch API
    Recently I was working on a site for a library that had a lot of data that needed to be imported into Drupal as nodes. Each book title, e-book, DVD, etc. needed to be a node inside of their Drupal 7 website. Not only that, but the database that held this data would add new records and occasionally update and remove existing ones. This meant about 300,000 - 4 […]
  • Dries Buytaert: Jennifer Hodgdon
    As the Documentation Team lead, Jennifer "jhodgdon" Hodgdon has done a fantastic job of not only keeping Drupal core's API documentation high-quality and consistent, but also of on-boarding new Drupal core contributors through the "Novice" issue queue. Since documentation improvement patches are always welcome, and since they are unl […]
  • Krimson: Display Suite: UX and HTML5
    So, you’re a site builder and you want to manage the layout of a node, form, search result,... then Display Suite is a fantastic tool to get the job done through the user interface. Thus avoiding extra coding. As with other great Drupal modules Display Suite started out as a small project. Over the course of a few years, Display Suite became a powerful and w […]
  • groups.drupal.org frontpage posts: Blue Drop Awards offers a unique marketing opportunity for Drupal
    We are inviting YOU, The Drupal Community, to join us for the first ever Blue Drop Awards! LEARN MORE & NOMINATE YOUR FAVORITE DRUPAL SITE: www.bluedropawards.org As Drupal grows, it is important to recognize the innovative people and companies driving our success and to promote Drupal to the world beyond the community. While the Drupal software has won […]
  • Deeson Group: Trigger Drupal managed AJAX calls at any time with Drupal 7
  • Cafuego: Drupal Downunder Video

Follow

Get every new post delivered to your Inbox.