- CodeIgniter 1.7
- David Upton Jose Argudo Blanco
- 219字
- 2021-04-01 13:45:29
Chapter 3. Navigating Your Site
Now that we've installed CI, we need to understand how it works.
Readers familiar with design patterns would have recognized by now that CI implements the Model-View-Controller (MVC) pattern. This is a method of organizing the files that make up a website or if you like, of splitting the site into sensible parts rather than having one huge lump of code.
In this chapter, we'll briefly look at the theory behind MVC, and then at the way CI organizes itself internally. In particular, what goes in those different folders and how do they communicate?
In this chapter we will look at:
- How MVC helps to organize a dynamic website
- The process by which CI analyzes an incoming Internet request and decides which part of your code will handle it
- What the code does
- CI syntax rules
- The different type of files or classes you can find—or write for yourself—on a CodeIgniter site
- How to pass parameters to controllers using the URL
- How to write better views and pass dynamic data to them
- How a reply is returned to the surfer
- How the files or classes pass information and control to each other
- How useful code is kept inside helper and library files
- Some practical hints on site design
推薦閱讀
- User Training for Busy Programmers
- Spring Python 1.1
- Photoshop圖形圖像設(shè)計(jì)案例教程(高等院校計(jì)算機(jī)任務(wù)驅(qū)動(dòng)教改教材)
- Photoshop CC 實(shí)戰(zhàn)入門
- Flash CC從入門到精通
- SOLIDWORKS 2021中文版基礎(chǔ)入門一本通
- COSPLAY的后期藝術(shù):Lightroom+Photoshop修圖技法攻略
- Illustrator CC 2018中文版入門與提高
- 跟儲(chǔ)君老師學(xué)Excel極簡(jiǎn)思維
- Elasticsearch實(shí)戰(zhàn)與原理解析
- Photoshop CS6實(shí)戰(zhàn)從入門到精通(超值版)
- Elgg Social Networking
- Vue 企業(yè)開(kāi)發(fā)實(shí)戰(zhàn)
- Autodesk Ecotect Analysis綠色建筑分析應(yīng)用
- 從零開(kāi)始:Illustrator CC中文版基礎(chǔ)培訓(xùn)教程