CodeIgniter Web Application Blueprints
eBook - ePub

CodeIgniter Web Application Blueprints

Rob Foster

Partager le livre
  1. 330 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

CodeIgniter Web Application Blueprints

Rob Foster

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que CodeIgniter Web Application Blueprints est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  CodeIgniter Web Application Blueprints par Rob Foster en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Application Development. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781783287093

CodeIgniter Web Application Blueprints


Table of Contents

CodeIgniter Web Application Blueprints
Credits
About the Author
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. Introduction and Shared Project Resources
Common resources
Twitter Bootstrap
Headers and footers
Downloading CodeIgniter
CodeIgniter on newer versions of PHP
Installing Twitter Bootstrap
Removing index.php from the address bar
Installing and using Sparks
Creating a shared header and footer view
Common language items
Creating the MY_Controller file
Autoloading common system resources
Security considerations
Moving the system folder
Error messages
Query binding
Summary
2. A URL Shortener
Design and wireframes
File overview
Creating the database
Adjusting the routes.php file
Creating the model
Creating views
Creating the view file–views/create/create.php
Creating the view file–views/nav/top_nav.php
Creating controllers
Creating the controller file–controllers/create.php
Creating the controller file–controllers/go.php
Creating the language file
Putting it all together
Creating a shortened URL
Retrieving a URL
Summary
3. Discussion Forum
Design and wireframes
The View All Discussions page
The View Discussion/Add Comment page
The New Discussion page
The admin Dashboard page
File overview
Creating the database
Adjusting the config.php file
Adjusting the routes.php file
Creating the models
Creating the model file – models/discussions_model.php
Creating the model file – comments_model.php
Creating the model file – admin_model.php
Creating views
Discussions
Comments
New discussion
The top_nav file
The login view
The login_header file
Dashboard
The signin.css file
Creating the controllers
The discussions controller
The comments controller
The admin controller
Creating the language file
Putting it all together
A user creates a discussion forum
A user comments on a discussion forum
A user dislikes a comment and flags it for moderation
A moderator reviews comments awaiting moderation
Summary
4. Creating a Photo-sharing Application
Design and wireframes
The create item
The do_upload item
The go item
File overview
Creating the database
Adjusting the config.php and autoload.php files
Adjusting the routes.php file
Creating the model
Creating the views
Creating the controllers
Creating the language file
Putting it all together
Summary
5. Creating a Newsletter Signup
Introduction
Design and wireframes
The Home – index() and Signup – index() items
Settings/Unsubscribe – settings()
File overview
Creating the database
Adjusting the routes.php file
Creating the model
Creating the views
Creating the controllers
Creating the language file
Putting it all together
User subscribes
User updates their settings
User unsubscribes
Summary
6. Creating an Authentication System
Introduction
Design and wireframes
Me – editing details
Viewing all users
Creating users
Editing the user details
Deleting a user
Sign in
Register
File overview
Creating the database
Adjusting the config.php file
Adjusting the routes.php file
Creating the models
Creating the views
Creating the controllers
Creating the language file
Putting it all together
User registration
Ensuring correct access
Summary
7. Creating an E-Commerce Site
Introduction
Design and wireframes
Home – index()
Add to cart – add()
Cart – display_cart()
User Details – user_details()
File overview
Creating the database
Adjusting the config.php file
Adjusting the routes.php file
Creating the model
Creating the views
Creating the controllers
Creating the language file
Putting it all together
Filtering a search
Adding to cart
Altering the product quantity
Summary
8. Creating a To-do List
Introduction
Design and wireframes
View All/Create
Delete
File overview
Creating the database
Adjusting the config.php file
Adjusting the routes.php file
Creating the model
Creating views
Creating the controller
Creating the language file
Putting it all together
User adds a task
User changes the task status
Summary
9. Creating a Job Board
Introduction
Design and wireframes
Job/Search
Detail/Apply
Create
File overview
Creating the database
Adjusting the config.php file
Adjusting the routes.php file
Creating the model
Creating views
Creating the controller
Creating the language file
Putting it all together
User creates a job advert
User looks at a job
User searches for a job
User applies for a job
Summary
Index

CodeIgniter Web Application Blueprints

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: January 2015
Production reference: 1140115
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-709-3
www.packtpub.com

Credits

Author
Rob Foster
Reviewers
Aafrin
Alexandros Dallas
Sharafat Ibn Mollah Mosharraf
Commissioning Editor
Amarabha Banerjee
Acquisition Editor
Nikhil Karkal
Content Development Editor
Rohit Kumar Singh
Technical Editor
Taabish Khan
Copy Editors
Stuti Srivastava
Laxmi Subramanian
Project Coordinator
Mary Alex
Proofreaders
Samuel Redman Birch
Stephen Copestake
Ameesha Green
Clyde Jenkins
Indexer
Rekha Nair
Graphics
Sheetal Aute
Valentina D'silva
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa

About the Author

Rob Foster has been working in the field of web development for almost 10 years, working for various IT sectors. He has interests in CodeIgniter, Laravel, and iOS programming.
While not hunched over a computer ruining his eyesight, he enjoys drinking good quality wine, appreciates varieties of fine cheese, and has a liking for a pair of comfortable, elastic slacks!
Rob has also written CodeIgniter 2 Cookbook, Packt Publishing, and was a technical editor for SUSE Linux 10 Bible, Wiley.

Table des matiĂšres