E-book details

Programming with CodeIgniter MVC. Build feature-rich web applications using the CodeIgniter MVC framework

Programming with CodeIgniter MVC. Build feature-rich web applications using the CodeIgniter MVC framework

Yehuda Zadik, Eliahou Orr

Ebook
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.
  • Programming with CodeIgniter MVC
    • Table of Contents
    • Programming with CodeIgniter MVC
    • Credits
    • About the Authors
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Downloading the example code
        • Errata
        • Piracy
        • Questions
    • 1. Getting Started
      • Installing CodeIgniter
      • Folders overview
        • Mandatory components
      • Example 1 hello world
        • The controller file
        • The view file
      • Example 2 passing the complex parameters to a view
        • The controller file
        • The view file
      • Example 3 the database query by a model rendering results to a view
        • The controller file
        • The model file
        • The view file
      • Example 4 interactive contact forms
        • The controller file
        • The view file
      • Summary
    • 2. Configurations and Naming Conventions
      • CI directory tree
        • config.php
        • database.php
        • routes.php
      • Defining and using your own configurations
      • Understanding and using CI naming conventions
        • The main resource type naming rules
          • Controller definition naming rules
          • Example 1 calling the controller index method
          • Example 2 calling the controller and calc method without arguments
          • Example 3 calling the controller and calc method with arguments
          • Example 4 calling AJAX to an AJAX-oriented method with arguments
          • Loading libraries, models, and helpers
      • Miscellaneous naming conventions
      • Summary
    • 3. Controller Usage and Scope
      • Scope of the CI controller
      • The user-defined CI controller
        • Extending the CI controller
      • CI controller use cases
      • Example 1 default homepage controller
        • The controller file
        • The view file
        • The configuration file
      • Example 2 sending e-mails with attachments
        • The controller file
      • Example 3 admin and regular user log in
        • The controller file
        • The model file
        • The database file to upload for this example
        • The login_view view file
        • The login_in_view view file
      • Summary
    • 4. Libraries
      • The CI libraries scope and usage
        • Available CI libraries
      • Example 1 using the built-in libraries
        • The controller file
        • The view file
      • Example 2 using third-party libraries such as the Google Maps CI library wrapper
        • The controller file
        • The view file
      • Example 3 building a library such as the Flickr API wrapper
        • The flickr_wrapper.php library file
        • The flickr_recent.php controller file
        • The flickr_recent_view.php view file
      • Example 4 the LinkedIn API wrapper
        • Requirements
        • Authentication flowchart
        • The linkedin_handler.php library file
        • The linkedinfo.php controller file
        • The linkedin-me.php view file
      • Summary
    • 5. Helpers
      • CI helpers' scope and usage
        • Available CI helpers
          • CI system helpers
          • CI third-party helpers
      • Example 1 using built-in helpers
        • The controller file
        • The view file
      • Example 2 SSL helper
        • The helper file
        • The controller file
        • The view file
      • Example 3 building your own helper
        • The helper file
        • The controller file
        • The view file
      • Summary
    • 6. Models
      • Scope of the CI model
        • The model resource path
        • Loading a model
        • Using model methods
        • Connecting to a database
        • Business logic
      • Object Relational Mapping (ORM)
        • ORM simple operations example
      • Example 1 a CRUD example
        • The controller file
        • The model file
        • The view file
      • Example 2 a business logic example
        • The controller file
        • The model file
        • The view file
      • Example 3 retrieving data from Facebook
        • The controller file
        • The model file
        • The view file
      • Summary
    • 7. Views
      • Scope of the CI view
        • The CI view resources path
        • The rendering flow
        • View flexibility
      • Accessing the libraries/helpers
        • Forms
        • AJAX
        • Parser configuration issues
        • Integrating jQuery or other client-side libraries
        • Plugins for rendering view
      • Example 1 HTML5 location powered by Google Maps
        • The controller file
        • The view file
      • Example 2 user feedback powered by AJAX and the jQuery UI
        • The ajax_handler.php controller file
        • The users_model.php model file
        • The logged_in_view.php view file
      • Summary
    • A. Appendix
    • Index
  • Title: Programming with CodeIgniter MVC. Build feature-rich web applications using the CodeIgniter MVC framework
  • Author: Yehuda Zadik, Eliahou Orr
  • Original title: Programming with CodeIgniter MVC. Build feature-rich web applications using the CodeIgniter MVC framework
  • ISBN: 9781849694711, 9781849694711
  • Date of issue: 2013-09-23
  • Format: Ebook
  • Item ID: e_3bo2
  • Publisher: Packt Publishing