Programming with CodeIgniter MVC


Programming with CodeIgniter MVC
eBook: $20.99
Formats: PDF, PacktLib, ePub and Mobi formats
$17.84
save 15%!
Print + free eBook + free PacktLib access to the book: $55.98    Print cover: $34.99
$34.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 124 pages [ 235mm x 191mm ]
Release Date : September 2013
ISBN : 1849694702
ISBN 13 : 9781849694704
Author(s) : Eli Orr, Yehuda Zadik
Topics and Technologies : All Books, Web Development, PHP, Web Development

Table of Contents

Preface
Chapter 1: Getting Started
Chapter 2: Configurations and Naming Conventions
Chapter 3: Controller Usage and Scope
Chapter 4: Libraries
Chapter 5: Helpers
Chapter 6: Models
Chapter 7: Views
Appendix
Index
  • Chapter 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
    • Chapter 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
      • Chapter 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 – the 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
        • Chapter 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
          • Chapter 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
            • Chapter 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
              • Chapter 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

                Eli Orr

                Eli Orr brings over 30 years of experience in the high tech industry, mainly in software product development. Eli published articles in several magazines such as Wireless Systems Design, Telephony-Online, CommsDesign, EE Times, and for various emerging technologies. Currently, Eli is a PHP Advanced Web Application Developer, focused on CodeIgniter based projects for the last two years for rich functionality heavy-duty web applications. Prior to that, as an entrepreneur, Eli established LogoDial Zappix Ltd., and had the role of CTO and server-side developer. Zappix enables dynamic visualization of call center voice menus, which are currently available in USA and Israel on iOS and Android-enabled smartphones. Prior to that, Eli developed telecom solutions for Unified Communications with AT&T. Prior to that, Eli developed VoIP developer toolkits as a product manager with Radvision Ltd. During that period, he was an active member with the ITU-T Signaling Group 16 for defining VoIP protocol standardization, mainly the H.323. Prior to that, Eli led development teams with IAI (Israel Aircraft Industries) ELTA based C and C++ programming languages. Eli can be contacted through his website, http://EliOrr.com.

                Yehuda Zadik

                Yehuda Zadik has over 20 years of experience in the IT industry, where he mainly specialized in software development based object-oriented programming (OOP) technologies. Yehuda has over 8 years of experience developing with PHP OOP and open source Linux environments for developing web-based applications. Yehuda used state-of-the-art technologies for building dynamic web-based applications that were e-commerce enabled as well as social network integrated. Yehuda has a vast knowledge for integrating third-party plugins for network, mobile, and social environments' integration. Among the environments, Yehuda integrated with Facebook API, LinkedIn API, and various others. Yehuda is an enthusiastic CodeIgniter developer who has been developing rich functionality and heavy traffic web-based applications over the last two years. Among Yehuda's clients are several major academic institutes. Yehuda can be contacted through his website, http://yudazdk.co.il.
                Sorry, we don't have any reviews for this title yet.

                Code Downloads

                Download the code and support files for this book.


                Submit Errata

                Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                Sample chapters

                You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                Frequently bought together

                Programming with CodeIgniter MVC +    RESTful Java Web Services =
                50% Off
                the second eBook
                Price for both: £19.75

                Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                What you will learn from this book

                • 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.

                Approach

                The book is written for PHP developers who wish to learn how to use MVC for application development, using CodeIgniter. No experience of CodeIgniter would be necessary, as this book is for beginning MVC development.

                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.

                Code Download and Errata
                Packt Anytime, Anywhere
                Register Books
                Print Upgrades
                eBook Downloads
                Video Support
                Contact Us
                Awards Voting Nominations Previous Winners
                Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                Resources
                Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software