FuelPHP Application Development Blueprints
eBook - ePub

FuelPHP Application Development Blueprints

Sebastien Drouyer

Condividi libro
  1. 284 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

FuelPHP Application Development Blueprints

Sebastien Drouyer

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
FuelPHP Application Development Blueprints è disponibile online in formato PDF/ePub?
Sì, puoi accedere a FuelPHP Application Development Blueprints di Sebastien Drouyer in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Ciencia de la computación e Programación web. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2015
ISBN
9781783985401

FuelPHP Application Development Blueprints


Table of Contents

FuelPHP Application Development 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
Downloading the color images of this book
Errata
Piracy
Questions
1. Building Your First FuelPHP Application
About FuelPHP
Development process of a FuelPHP application
Installing the environment
Windows
Mac
Ubuntu
Recommended modules and extensions
Getting the FuelPHP framework
Installing FuelPHP 1.7.2
Downloading the appropriate ZIP file
Using Composer
Updating FuelPHP
Installation directory and apache configuration
The simplest way
By setting up a virtual host
FuelPHP basics
The FuelPHP file system hierarchy
The app directory
The packages
Class name, paths, and coding standard
MVC, HMVC, and how it works on FuelPHP
What is MVC?
How it works on FuelPHP
Actions and controllers
Views
Parameters
Routes
Presenters
What is HMVC?
The oil utility and the oil console
Building your first application
Database configuration
Scaffolding
Migrating
Using your application
Refining the application
Refining the monkey listing
Refining the monkey detailed view
Allowing an empty description
Checking whether the height is a float
Using a checkbox instead of an input for the still_here attribute
Setting custom routes
Removing useless routes and files
A few notes about deploying your application
Summary
2. Building a To-do List Application
Specifications
Conception
FuelPHP installation and configuration
Scaffolding
Routes configuration
The profiler
Models, relations, and the ORM
Differences between CRUD and ORM
The FuelPHP ORM
DB and ORM basics
Executing queries without the ORM
Creating new objects
Finding specific objects
Updating an object
Deleting an object
Loading several objects
Using method chaining
More complex requests
ORM relations
Defining relations inside the models
Testing the relations
Getting objects' relations
Updating objects' relations
Observers and events
Implementation of the to-do list
Allowing the user to see and change tasks' status
Allowing the user to add tasks
Allowing the user to change tasks' order
Axis of improvements
Summary
3. Building a Blog Application
Specifications
Conception
Preliminary steps
Scaffolding the posts
Migrating part 1
The administration panel
The Auth package
Creating the Blog module
Moving files to the Blog module
Improving the navigation bar
Scaffolding the rest of our project
Scaffolding categories
Generating files
Moving categories to the blog module
Migrating
Scaffolding comments
Scaffolding posts (front)
Refining the administration panel
Refining the posts administration panel
Improving the post creation and edition forms
Removing and automatically filling the slug
Changing the small description input to a textarea
Editing the post content using a WYSIWYG editor
Replacing the category input by a select box
Replacing the user_id field by author
Removing the View link
The posts' list
Removing the Slug, Small description and Content columns
Displaying the category and author names
Removing the view link
Refining the categories administration panel
Removing the View link
Adding the number of post's column
Solution 1: using count
Solution 2: using related
Solution 3: using DB::query
Refining the comments administration panel
Improving the comments listing
Removing the view and adding a new comment link
Removing the Email and Content columns
Replacing the Post id column by Post
Improving the comment edition form
Changing the Status input to a select box
Replacing Post id by Post
Removing the View link
Protecting your website against CSRF attacks
Protecting links
Protecting forms
Refining the front-end
Refining the posts' listing
Deleting useless features
Changing how the posts' listing is displayed
Adding pagination
Using posts' slug
Listing posts by categories
Adding indexes
Refining the posts' visualization webpage
Changing the post layout
Adding the comment form
Displaying comments
Notifying the author when a new comment is posted
Clearing rejected comments
Additional improvements
Summary
4. Creating and Using Packages
What are CAPTCHAs?
Preliminary steps
Generating the sample application
The reCAPTCHA solution
Installing the recaptcha package
Configuring the recaptcha package
Integrating the recaptcha package
Creating your own package
Conception
Generating the package
Generating the Captcha_Answer model
Migrating the package
Integrating the package into our application
Implementing the get_html method
Implementing the CAPTCHA verification method
Cleaning old captchas
Possible improvements
Summary
5. Building Your Own Restful API
Specifications
Conception
FuelPHP installation and configuration
The Parser package and template engines
A major benefit of language-agnostic template engines
Subscription and authentication features
Implementing the subscription and authentication forms
Handling the signup form
Handling the signin form
Allowing the user to sign out
Allowing the user to create and view posts
Generating the Post model
Allowing the user to create new posts
Implementing the user interface
Implementing the post creation action
Implementing the profile page
Configuring the routes
Creating the user model
Implementing the show action
Implementing views
Implementing the API
I...

Indice dei contenuti