Yii application development cookbook /
Annotation
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt,
2016.
|
Edición: | Third edition. |
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; About the Authors; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Fundamentals; Introduction; Installing the framework; Application templates; Dependency injection container; Service locator; Code generation; Configuring components; Working with events; Using external code; Chapter 2: Routing, Controllers, and Views; Introduction; Configuring URL rules; Generating URLs; Using regular expressions in URL rules; Using a base controller; Using standalone actions; Creating a custom filter; Displaying static pages; Using flash messages.
- Using the controller context in a viewReusing views with partials; Using blocks; Using decorators; Defining multiple layouts; Pagination and sorting data; Chapter 3: ActiveRecord, Model, and Database; Introduction; Getting data from a database; Defining and using multiple DB connections; Customizing the ActiveQuery class; Processing model fields with AR event-like methods; Automating timestamps; Setting up an author automatically; Setting up a slug automatically; Transactions; Replication and read-write splitting; Implementing single table inheritance; Chapter 4: Forms; Introduction.
- Writing your own validatorsUploading files; Adding and customizing CaptchaWidget; Customizing Captcha; Creating a custom input widget; Tabular input; Conditional validation; Complex forms with multiple models; AJAX-dependent drop-down list; AJAX validation; Creating a custom client-side validation; Chapter 5: Security; Introduction; Authentication; Using controller filters; Preventing XSS; Preventing SQL injections; Preventing CSRF; Using RBAC; Encrypting/Decrypting data; Chapter 6: RESTful Web Services; Introduction; Creating a REST server; Authentication; Rate limiting; Versioning.
- Error handlingChapter 7: Official Extensions; Introduction; Authentication client; SwiftMailer e-mail library; Faker fixture data generator; Imagine library; MongoDB driver; ElasticSearch engine adapter; Gii code generator; Pjax jQuery plugin; Redis database driver; Chapter 8: Extending Yii; Introduction; Creating helpers; Creating model behaviors; Creating components; Creating reusable controller actions; Creating reusable controllers; Creating a widget; Creating CLI commands; Creating filters; Creating modules; Creating a custom view renderer; Creating a multilanguage application.
- Making extensions distribution-readyChapter 9: Performance Tuning; Following best practices; Speeding up session handling; Using cache dependencies and chains; Profiling an application with Yii; Leveraging HTTP caching; Combining and minimizing assets; Running Yii2 on HHVM; Chapter 10: Deployment; Introduction; Changing the Yii directory layout; Moving an application webroot; Changing an advanced application template; Moving configuration parts into separate files; Using multiple configurations to simplify the deployment; Implementing and executing cron jobs; Maintenance mode.