- Programming with CodeIgniterMVC
- Eli Orr Yehuda Zadik
- 268字
- 2021-08-06 16:48:04
Chapter 2. Configurations and Naming Conventions
This chapter initially introduces the CI naming conventions. These conventions include the rules, style guide, and CodeIgniter naming spirit. The second part of this chapter will review CI project configurations for built-in resources as well as user-defined or third-party add-on libraries. Note that we will actually build our own project code in the subdirectory application described in Chapter 1, Getting Started, with optionally relative resource directories for our project's self-made resources, such as CSS / Media / jQuery libraries' resources or third-party add-ons, extending the base CI downloaded from the Ellis Labs site or GitHub.
We should remember that developing a CI project is done by replacing/expanding the default provided controllers, views, models, and other resources in a well-defined OOP fashion. We should extend controllers, models, and add additional views as well as use defined helpers or libraries. We can add these from third-party libraries or helpers, or develop new ones for our special project business logic and needs.
The initial step after installing the CI is making the proper configurations for our project requirements, such as database, session, auto-loaded helpers, and the libraries we want.
The CI has a set of configuration files defined in the project directory located at application/config
. These configurations are loaded initially whenever we execute any of our project's CI controllers via a URI call using a browser or issuing an HTTP request via code. The major configuration files are: config.php
, database.php
, autoload.php
, and routes.php
.
We should review each of the major configuration files with its configuration value, which includes recommended value, and possible values.
- 無代碼編程:用云表搭建企業數字化管理平臺
- HTML5 移動Web開發從入門到精通(微課精編版)
- 深入淺出WPF
- Learning AWS Lumberyard Game Development
- Functional Kotlin
- Visual C++開發入行真功夫
- C/C++程序員面試指南
- Python Programming for Arduino
- Advanced Python Programming
- Deep Learning for Natural Language Processing
- Koa與Node.js開發實戰
- 第五空間戰略:大國間的網絡博弈
- Python數據科學實戰
- JavaScript+jQuery交互式Web前端開發(第2版)
- 信息安全技術(第2版)