doc/book/en/development/devweb/views.rst
branchstable
changeset 2175 16d3c37c5d28
parent 2172 cf8f9180e63e
child 2544 282261b26774
equal deleted inserted replaced
2174:7f576dc9502e 2175:16d3c37c5d28
     1 Views
     1 Views
     2 -----
     2 -----
     3 
     3 
     4 This chapter aims to describe the concept of a `view` used all along
     4 This chapter aims to describe the concept of a `view` used all along
     5 the development of a web application and how it has been implemented
     5 the development of a web application and how it has been implemented
     6 in `CubicWeb`.
     6 in *CubicWeb*.
     7 
     7 
     8 We'll start with a description of the interface providing you with a basic
     8 We'll start with a description of the interface providing you with a basic
     9 understanding of the classes and methods available, then detail the view
     9 understanding of the classes and methods available, then detail the view
    10 selection principle which makes `CubicWeb` web interface very flexible.
    10 selection principle which makes *CubicWeb* web interface very flexible.
    11 
    11 
    12 A `View` is an object applied to another object such as an entity.
    12 A `View` is an object applied to another object such as an entity.
    13 
    13 
    14 Basic class for views
    14 Basic class for views
    15 ---------------------
    15 ---------------------
   184 
   184 
   185 .. image:: ../../images/lax-book.10-blog-with-two-entries.en.png
   185 .. image:: ../../images/lax-book.10-blog-with-two-entries.en.png
   186    :alt: a blog and all its entries
   186    :alt: a blog and all its entries
   187 
   187 
   188 **Before we move forward, remember that the selection/view principle is
   188 **Before we move forward, remember that the selection/view principle is
   189 at the core of `CubicWeb`. Everywhere in the engine, data is requested
   189 at the core of *CubicWeb*. Everywhere in the engine, data is requested
   190 using the RQL language, then HTML/XML/text/PNG is output by applying a
   190 using the RQL language, then HTML/XML/text/PNG is output by applying a
   191 view to the result set returned by the query. That is where most of the
   191 view to the result set returned by the query. That is where most of the
   192 flexibility comes from.**
   192 flexibility comes from.**
   193 
   193 
   194 [WRITE ME]
   194 [WRITE ME]