1. Download CI, the official website, the current 3.x version has been updated, 2.2.6 is the last version of the 2.x version. To be consistent with the video textbook, use the CI 2.x version
2. Directory structure, from inside the application, controller inside the establishment of 2 directories, admin and index. The controller used to store the foreground and background respectively.
From the view, also set up the admin and index two directories, from the root to create a style directory, used to store the style, in the style, the establishment of the admin and index two directories, respectively, stored.
3. After the CI is loaded, the auxiliary function URL class is automatically loaded, which facilitates the use of 3 commonly used functions, site_url (), Base_url (), redirect (), and, in the online Help, the URL class.
4. Modify the default route inside the routing, from Welcome, to Index/index
5. After the introduction of the template, in the head, you need to modify the CSS style path, instead href = "<?php echo base_url ()." style/admin/'?> css/default.css "
6. In common.php, add a global print function, Public function p ($arr) {}, and print the array for later debugging.
CI Notes (1)