Các thư mục công cộng cũng sẽ có một thư mục con gọi là tài sản, mà sẽ chứa các tập tin bổ sung cho trang web. Những file đó sẽ được nhóm lại theo cách sử dụng của họ, mà trong phần này rơi vào bốn loại: các tập tin thông thường, các file CSS, JavaScript tập tin, và các tập tin hình thức xử lý. | CHAPTER 4 BUILD AN EVENTS CALENDAR This is the main file which displays the month in calendar format with event titles displayed in the box of the day on which they occur. If users clicks an event title they re taken to this page where the event s data is displayed in detail. To create or modify new events the form displayed on this page is used. To delete an event the user must first confirm that choice by submitting the confirmation form on this page. The public folder will also have a subfolder called assets which will contain additional files for the site. Those files will be grouped by their usage which in this section falls into four categories common files CSS files JavaScript files and form-processing files. Create four folders within assets called common css inc and js. The common folder will store files that will be used on all the publicly accessible pages namely the header and footer of the app the css folder will store site style sheets the inc folder will store files to process form-submitted input and the js folder will store site JavaScript files. Nonpublic Application Files The sys folder will be broken into three subfolders class which will store all class files for the application such as the Calendar class config which stores application configuration information such as database credentials and core which holds the files that initialize the application. When everything is organized and all files are created the file structure will be well organized and easy to scale in the future see Figure 4-1 . efip Pro PHP and . Query 3 Source Files L public _ assets common _i css gyjj kcii tuii Index EGfcl O sys I class __ contig f core Include Path Figure 4-1. The folder structure and files as they appear in NetBeans on Mac 121 CHAPTER 4 BUILD AN EVENTS CALENDAR PUBLIC AND NONPUBLIC FOLDERS WHY BOTHER You may be asking yourself right about now Why put in the extra