万本电子书0元读

万本电子书0元读

顶部广告

Programming with CodeIgniterMVC电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Eliahou Orr

出  版  社:Packt Publishing

出版时间:2013-09-23

字       数:95.6万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.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.
目录展开

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部