Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try take a look a presentation on How pages are built on Drupal 7 from drupalcon at <a href="http://sf2010.drupal.org/conference/sessions/page-render-drill-down-drupal-7" rel="nofollow">http://sf2010.drupal.org/conference/sessions/page-render-drill-down-drupal-7</a> specially after 5 minutes from start (05:10). Sorry can't specify much detail here cause i still watch it my self. And try to understand it as well. ;)</p> <p><strong>[Update]</strong></p> <p>After watch the presentation here is my quick conclusion on how drupal 7 render out a page:</p> <p>Instead of common approach that you mention from your question </p> <blockquote> <p>where a top-level layout/page PHP file sets out the basic document structure, and then renders our various sub-views via includes or view rendering methods</p> </blockquote> <p>Drupal render a page through a rendering flow approach like this</p> <ol> <li>bootstrap</li> <li>menu_execute_active_handler</li> <li>page_callback</li> <li>delivery_callback</li> <li>hook_page_alter()</li> <li>drupal_render($page)</li> </ol> <blockquote> <p>However, it glosses over how the theme engine (is that the right term?) gets the various parts of PHP into this page (not a criticism, the book's taking an approach that different from the path I'm on).</p> </blockquote> <p>that various parts is served starting from rendering flow number 3 (page_callback) through flow number 6 (drupal_render($page)) where its start to return an array of drupal render-able array and then latter in your theme you can use the $page variable (served from drupal_render($page)) to render i.e drupal content.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload