TAILIEUCHUNG - Web to py enterprise web framework - p 3

MODEL-VIEW-CONTROLLER 5 In this simple example, the HTML page structure is represented programmatically by the HTML, BODY, and H1 objects; the database db1 is queried by the select command; finally, everything is serialized into HTML. This is just one example of the power of web2py and its built-in libraries. web2py does even more for the developer by automatically handling cookies, sessions, creation of database tables, database modifications, form validation, SQL injection prevention, cross-site scripting (XSS) prevention, and many other indispensable web application tasks. Web frameworks are typically categorized as one of two types: A "glued" framework is built by assembling (gluing together). | MODEL-VIEW-CONTROLLER 5 In this simple example the HTML page structure is represented programmatically by the html body and hi objects the database db1 is queried by the select command finally everything is serialized into HTML. This is just one example of the power of WEB2py and its built-in libraries. WEB2py does even more forthe developer by automatically handling cookies sessions creation of database tables database modifications form validation SQL injection prevention cross-site scripting XSS prevention and many other indispensable web application tasks. Web frameworks are typically categorized as one of two types A glued framework is built by assembling gluing together several third-party components. A full-stack framework is built by creating components designed specifically to work together and be tightly integrated. WEB2py is a full-stack framework. Almost all of its components are built from scratch and designed to work together but they function just as well outside ofthe complete WEB2py framework. For example the Database Abstraction Layer DAL or the template language can be used independently of the WEB2py framework by importing or into your own Python applications. gluon is the name of the WEB2py folder that contains system libraries. Some WEB2py libraries such as building and processing forms from database tables have dependencies on other portions of WEB2py. WEB2py can also work with third-party Python libraries including other template languages and DALs but they will not be as tightly integrated as the original components. Model-View-Controller WEB2py forces the developer to separate data representation the model data presentation the view and the application workflow the controller . Let s consider again the previous example and see how to build a WEB2py application around it. web2py appliance i 1 Models Data Representation X Controllers Logic and Workflow X Views Data Presentation 1 There is nothing special about .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.