CodeIgniter Web Application Blueprints
eBook - ePub

CodeIgniter Web Application Blueprints

Rob Foster

Compartir libro
  1. 330 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

CodeIgniter Web Application Blueprints

Rob Foster

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es CodeIgniter Web Application Blueprints un PDF/ePUB en línea?
Sí, puedes acceder a CodeIgniter Web Application Blueprints de Rob Foster en formato PDF o ePUB, así como a otros libros populares de Computer Science y Application Development. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
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.

Índice