tailieunhanh - Thiết kế web với joomla 1.6(5).x part 61

Trong danh sách các ví dụ của các tập tin, tôi đã bao gồm các tài liệu mà bạn sẽ muốn tạo ra để bảo vệ truy cập trực tiếp đến các thư mục. Đừng quên để tạo ra và bao gồm các. Đơn giản chỉ cần sao chép một hiện từ Joomla! lõi để sử dụng trong module của bạn. | Chapter 21 Customizing Joomla Functionality in the automatic creation of the sub-directory tmpl. Declaring the file is also not necessary. Note In the example list of files I have included the documents that you would want to create to protect direct access to the directories. Don t forget to create and include these. Simply copy an existing one from the Joomla core for use in your module. After this change is made to the XML file all you need to do is zip up the files and name the archive something descriptive preferable . Note Although I have used the .zip format for this example you can use your preferred archive format .zip .gz .tar .. Caution Make sure that you are careful about what you zip up into the archive. Do not accidentally include system files generated by your local machine. This an easy mistake to make and it can sometimes cause problems for module installation. Working with Plugins Joomla plugins are helper applications that work by detecting and responding to events. Technically they are observer classes that look to a global event dispatcher. The result is that you as a developer are able to create a plugin that executes some bit of code when an event occurs. This is most useful to you as a way to supplement your work on a component or module. Note For discussion of how to use a plugin with another extension see http Tutorial Using plugins in your own extension. Plugin architecture Joomla added the observer class JPlugin and plugins follow the Observer design pattern. When you create a plugin you extend the observer class JPlugin to observe Joomla s observable class the JEventDispatcher object. Put another way creating a plugin is a two-part process whereby you create a class to extend JPlugin and then write a method for each event you want the plugin to handle. 569 Part IV Customizing and Extending the System Note Joomla includes a variety of core events. For a .