Understanding the PAC framework of druple

Source: Internet
Author: User
Tags drupal web hosting open source cms
ArticleDirectory
    • How the PAC structure impacts the Drupal Model
    • Related posts

Http://www.webhostinghero.ca/understanding-the-pac-framework-for-drupal.html

 

Understanding the PAC framework for drupaljuly 6th, 2010 · No comments

Drupal's structure is known as a PAC (Presentation affects action control) model which uses a controller to represent logic, a presentation layer for design and an alternative action layer for data. similar to an MVC Framework, the components are unique and primarily communicate via API. in the structure, the Controller servers as the go between of the presentation and aggregate action, which is why the templates are generated through function CILS. the presentation, therefore, is just a rendering of a template, so you can focus on building out the core of the site and styling via CSS. in order to understand how PAC differs from other framework models, this article provides a theoretical overview of PAC for web development.

Pac is unique in that the varous levels communicate with each other so you can create a broad structure. sometimes the framework is also known as hmvc, or Hierarchical Model View Controller for its nested structure. with the depth of Drupal sites, it's much easier to build large sites that can scale into SS multiple business models.

For developers and publishers, this framework provides a way to create new membership structures and enables layers of the site to reflect unique presentation. one common example wocould be in an e-commerce site where the presentation for existing MERs cocould be adapted to reflect their purchasing preferences. in this way you can utilize your site data to optimize its audience specific presentation. with a flexible structure, you can modify your Drupal app to derive more revenue and better value for each visitor.

How the PAC structure impacts the Drupal Model

In Drupal, the PAC structure provides a flexible framework for scale-able development. menus in Drupal serve as controllers, which receive input via post (or get) functions, while data is stored in nodes, forms and entries in the specified action layers and the theme system provides a presentation layer. while the overall structure may be new to your developers, its consistent logic and streamlined development can help accelerate and scale applications to new levels.

at the core the control layer plays a crucial role in gathering and transmitting data. with Dual feedback between the specified action and presentation layers, developers shocould focus on the control as the core of data transmission and structuring. the presentation layer is solely to render the template, which itself makes api cils from functions as well as styling with CSS. at the back-end, the specified action layer provides storage for data in a SQL database (although recent versions of Drupal are compatible with a wide array of options .)

There are multiple PAC layers within Drupal which allows you to create a dynamic structure so the presentation and functions of the site are conditional upon the user, time or particle section. for example, the Controller reads es inputs from the user in terms of preferences; it may update the presentation as well as storing the preference in the specified action layer. the controller can then update the child PAC elements so the entire user experience should ss the application reflects the newly entered preferences.

Related posts

    • How to integrate and develop Drupal design themes
    • Comparing Drupal to other open source CMS options
    • Enterprise Drupal sites as developer guides

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.