TAILIEUCHUNG - pro zend framework techniques build a full cms project phần 10

các hồ sơ sẽ biến mất . Đó là bởi vì nó hiển thị chỉ khi có truy vấn vào hồ sơ, và ứng dụng của bạn hiện đang phục vụ nội dung mà không cần nhấn cơ sở dữ một thẻ bộ nhớ cache để trình đơn này để bạn có thể cập nhật menu lưu trữ | CHAPTER 11 ADVANCED TOPICS else page new CMS_Content_Item_Page id _ . add a cache tag to this menu so you can update the cached menu when you update the page tags page_ . page- id cache- save page cacheKey tags this- view- page page Now if you refresh the page twice the profiler will disappear. That is because it displays only when there are queries to profile and your application is now serving content without hitting the database. Internationalization It is becoming very common to have international teams of contributors working on a website together. Many people standardize their applications to use common languages but this can limit the reach of your project. Zend Framework supports many levels of internationalization. It gives you fine-grained control over the locale and character sets it uses for example. In this section I will focus multilingual applications. Getting Started with Zend_Translate Zend_Translate makes translating your ZF projects much easier than using the native PHP functions. It supports a range of source formats has a very simple API and tightly integrates with many ZF components such as Zend_View and Zend_Form. Zend_Translate_Adapters The first thing you need to do is determine which adapter you want to use. The adapters are in the same vein as those for Zend_Db_Table they allow the common API to connect to a range of data sources. In this example you will use the CSV adapter. You can create the files with either a text editor or most spreadsheet programs. Integrating Zend_Translate with Your Project There are many ways to integrate Zend_Translate with your project but I prefer to create application resources for any kind of generalized configuration like this. This enables you to reuse the resource in any ZF project you work on. To get started create a new folder in the application folder named lang. Then create two files in this folder and . 216 Download at CHAPTER 11 ADVANCED TOPICS Note It is not

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.