- Programming with CodeIgniterMVC
- Eli Orr Yehuda Zadik
- 227字
- 2021-08-06 16:48:03
Chapter 1. Getting Started
This chapter covers the basics of the CI development framework and its usage by reviewing some fundamental web application examples. We will start with a basic hello world example and move to an interactive contact-form integration with a database. We will construct the CI applications by following a step-by-step method. Throughout this chapter, we need to remember that the CI development framework is an MVC-based development architecture (for more information, refer to the Wikipedia definition at http://en.wikipedia.org/wiki/Model-view-controller).
This chapter will primarily focus on the following topics:
- The CI project directory tree framework
- Configurations (routing and autoloading are covered in this chapter, while the other issues are covered in Chapter 2, Configurations and Naming Conventions)
- Example 1: hello world
- Example 2: passing parameters to a view
- Example 3: the database query by a model rendering results to a view
- Example 4: interactive contact forms
By reviewing these examples, we will get the basics of using CI resources. We will begin by briefly reviewing the CI resources used. Then we will review a web application code that loads a static view page. Next we will use the model to retrieve data from a database and show it in a view. Finally, we'll add a view with a contact form to enter input and save it by calling a controller method into the database.
- Java異步編程實(shí)戰(zhàn)
- 零基礎(chǔ)玩轉(zhuǎn)區(qū)塊鏈
- Twilio Best Practices
- C語言程序設(shè)計(jì)基礎(chǔ)與實(shí)驗(yàn)指導(dǎo)
- 匯編語言程序設(shè)計(jì)(第3版)
- Java EE 7 Development with NetBeans 8
- Unity UI Cookbook
- PHP從入門到精通(第4版)(軟件開發(fā)視頻大講堂)
- Android移動(dòng)開發(fā)案例教程:基于Android Studio開發(fā)環(huán)境
- Orchestrating Docker
- 零基礎(chǔ)學(xué)C語言(升級(jí)版)
- Greenplum構(gòu)建實(shí)時(shí)數(shù)據(jù)倉(cāng)庫(kù)實(shí)踐
- C語言程序設(shè)計(jì)
- Java程序設(shè)計(jì)入門(第2版)
- Koa與Node.js開發(fā)實(shí)戰(zhàn)