TAILIEUCHUNG - Developing Large Web Applications- P18

Developing Large Web Applications- P18:This book presents a number of techniques for applying established practices of good software engineering to web development—that is, development primarily using the disparate technologies of HTML, CSS, JavaScript, and server-side scripting languages. Whereas there are many books on how to use languages, how to use libraries, and how to approach software engineering, this is the first book to codify many of the techniques it presents. These techniques will make the components of your own web applications more reusable, maintainable, and reliable | body which provides some additional hooks useful for styling. this- body EOD div id sitecvs div class sitecvsbd header content footer -- sitecvsbd -- div -- sitecvs -- div EOD return this- body public function get_page if empty this- css_id css_id else css_id id . this- css_id. doctype this- get_doctype meta this- get_meta title this- get_title Generally it s a good idea for performance to place JavaScript at the bottom of the page however a flag lets us alter this. if this- js_is_top js_top this- get_all_js else js_top js_btm this- get_all_js css this- get_all_css Return the entire page suitable for echoing back to the browser. return EOD doctype html head meta title css head body css_id this- body Working with Pages 151 js_btm body html EOD public function get_doctype return EOD DOCTYPE HTML PUBLIC - W3C DTD HTML EN http TR html4 EOD public function get_meta meta EOD meta http-equiv Content-Type content text html charset UTF-8 EOD if empty this- equiv meta . EOD meta name http-equiv content this- equiv EOD if empty this- desc meta . EOD meta name description content this- desc EOD if empty this- keywd meta . EOD meta name keywords content this- keywd EOD return meta public function get_title return EOD title this- title title 152 Chapter 7 Large-Scale PHP EOD public function add_to_css_linked keys this- css_linked . this- manage_css_linked keys public function add_to_css css this- css . css public function get_all_css First we get all the styles that were appended by modules. this- css_module this- css_linked this- css_module . this- create_css this- css Then we assemble all the CSS styles for the page in one block. return EOD -- Common CSS -- this- css_common -- Page CSS -- this- css_page -- Module CSS -- this- css_module EOD public function add_to_js_linked keys this- js_linked . this- manage_js_linked keys public function add_to_js js this- js . js public function get_all_js First we get all JavaScript that was appended by .

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.