PacktLib: Programming with CodeIgniter MVC

Programming with CodeIgniter MVC

Credits

About the Authors

About the Reviewers

www.PacktPub.com

Preface

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

Summary

Configurations and Naming Conventions

CI directory tree

Defining and using your own configurations

Understanding and using CI naming conventions

Miscellaneous naming conventions

Summary

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

Summary

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

Summary

Helpers

CI helpers' scope and usage

Example 1 – using built-in helpers

Example 2 – SSL helper

Example 3 – building your own helper

Summary

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

Summary

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

Summary

Appendix

Index