Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Programming with CodeIgniter MVC

You're reading from   Programming with CodeIgniter MVC Build feature-rich web applications using the CodeIgniter MVC framework

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781849694704
Length 192 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (15) Chapters Close

Programming with CodeIgniter MVC
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started FREE CHAPTER 2. Configurations and Naming Conventions 3. Controller Usage and Scope 4. Libraries 5. Helpers 6. Models 7. Views Appendix
Index

Chapter 3. Controller Usage and Scope

This chapter covers the CI controller scope and the various controller usage categories with several code examples of web applications. The controllers are the front-line decision makers of how to process or route a request and how to respond to actions, such as a rendered view sending back to the browser as an HTML page, an AJAX response to let the current requesting page update certain selector areas by the response, or even just to update the database seamlessly. The controllers use the available models, helpers, libraries, and views to respond to the caller, be it a web browser URL or a cron process issuing the cURL types POST/GET requests automatically.

The CI built-in controller behaves like an abstract class in the project scope so any of our project controllers must be extensions of a built-in CI controller. Our developed controller will inherit the CI built-in controller capabilities and built-in resources, such as auto-loaded helpers, libraries...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Programming with CodeIgniter MVC
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon