Free Sample
+ Collection

Programming with CodeIgniter MVC

Eli Orr, Yehuda Zadik

Build feature-rich web applications using the CodeIgniter MVC framework
RRP $20.99
RRP $34.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849694704
Paperback124 pages

About This Book

  • Build feature-rich web applications using the CodeIgniter MVC framework
  • Master the concepts of maximum simplicity, separation, flexibility,reusability, and performance efficiency
  • A guick guide to programming using the CodeIgniter MVC framework

Who This Book Is For

This book is written for PHP developers who wish to learn how to use the CodeIgniterMVC framework for application development. No experience of CodeIgniteris necessary, as this book is for beginning MVC development.

Table of Contents

Chapter 1: Getting Started
Installing CodeIgniter
Folders overview
Example 1 – hello world
Example 2 – passing the complex parameters to a view
Example 3 – the database query by a model rendering results to a view
Example 4 – interactive contact forms
Chapter 2: Configurations and Naming Conventions
CI directory tree
Defining and using your own configurations
Understanding and using CI naming conventions
Miscellaneous naming conventions
Chapter 3: Controller Usage and Scope
Scope of the CI controller
The user-defined CI controller
CI controller use cases
Example 1 – default homepage controller
Example 2 – sending e-mails with attachments
Example 3 – admin and regular user log in
Chapter 4: Libraries
The CI libraries' scope and usage
Example 1 – using the built-in libraries
Example 2 – using third-party libraries such as the Google Maps CI library wrapper
Example 3 – building a library such as the Flickr API wrapper
Example 4 – the LinkedIn API wrapper
Chapter 5: Helpers
CI helpers' scope and usage
Example 1 – using built-in helpers
Example 2 – SSL helper
Example 3 – building your own helper
Chapter 6: Models
Scope of the CI model
Object Relational Mapping (ORM)
Example 1 – a CRUD example
Example 2 – a business logic example
Example 3 – retrieving data from Facebook
Chapter 7: Views
Scope of the CI view
Accessing the libraries/helpers
Example 1 – HTML5 location powered by Google Maps
Example 2 – user feedback powered by AJAX and the jQuery UI

What You Will Learn

  • Install CodeIgniter and get acquainted with CodeIgniter resource directories
  • Making your first web application
  • Definiing your own CodeIgniter libraries
  • Issuing AJAX calls of CodeIgniter controller methods
  • Learning about controllers, helpers, and their usage
  • Understandingthe CodeIgniter naming conventions
  • Accessing CodeIgniter-assigned databases and other resources from your helpers

In Detail

The CodeIgniter Model-View-Controller framework provides genius simplicity, flexibility, and efficient resource usage, boosting performance and reusability.

"Programming with CodeIgniter MVC" reviews the unique features of CodeIgniter using simple, easy-to-follow, and practical examples.

Programming with CodeIgniter MVC provides a simple step-by-step guide to efficiently utilizingthe CodeIgniter MVC framework for developing web applications. This book is packed with engaging examples to understand the usage of controllers, libraries, and (Codeigniter) CI Models. This book commences with a quick discussion of the CodeIgniter Integration with  external plugins such as Flickr API, Google Maps and more will be reviewed with clear usage examples. It will then cover CI naming convention rules, mandatory and optional configurations, and usage within a CI project. It will also cover user defined configurations.

By the end of this book, you will not only understand user-defined libraries in a CI framework, but also their services, role, usage, and scope with the help of an example-based approach. The book also covers helpers, models, and views, as well as their usage.

Using this book, youwill soonbe able to develop feature-rich web applications using the CodeIgniter MVC framework. "Programming with CodeIgniter MVC" is a one-stop solution to developing solutions with CodeIgniter MVC.


Read More