Yii2 Application Development Cookbook - Third Edition
eBook - ePub

Yii2 Application Development Cookbook - Third Edition

Andrew Bogdanov, Dmitry Eliseev

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

Yii2 Application Development Cookbook - Third Edition

Andrew Bogdanov, Dmitry Eliseev

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

À propos de ce livre

Discover 100 useful recipes that will bring the best out of the Yii2 framework and be on the bleeding edge of web development todayAbout This Book‱ Learn how to use Yii2 efficiently through clear examples and core features, and see how to use tests, create reusable code snippets, core widgets, deployment, and more‱ This book provides you with a wide space for practice approaches and helps you to learn about the new Yii2 framework.‱ Understand the difference between the Yii 1.x.x versions using useful examples from real web applicationsWho This Book Is ForThis book is for developers with good PHP5 knowledge and MVC-frameworks who have tried to develop applications using the Yii 1.x.x version. This book will very useful for all those who would like to try Yii2, or those who are afraid to move from Yii 1.x.x. to Yii2. If you have still not tried Yii2, this book is definitely for you!What You Will Learn‱ See the new version of the Yii2 framework and application development practices‱ Write your applications more efficiently using shortcuts, Yii's core functionality, and the best practices in Web 2.0‱ Get data from a database, and deal with Active Record, migrations, widgets, and core features‱ Easily update your skills from the previous version of the framework‱ Explore how to use Yii with different JavaScript frameworks and libraries such as WebSockets, Angular, Ember, Backbone and React‱ Learn how to keep your application secure according to the general web application security principle "filter input, escape output.‱ Write RESTfull Web Services using Yii2 and built-in features‱ Correctly install and use official extensions in your projects‱ Effectively create and implement your own Yii extension, and also ensure your extension is reusable and useful for the communityIn DetailYii is a free, open source web application development framework written in PHP5 that promotes clean DRY design and encourages rapid development. It works to streamline your application development time and helps to ensure an extremely efficient, extensible, and maintainable end product. Being extremely performance optimized, Yii is a perfect choice for any size project. However, it has been built with sophisticated, enterprise applications in mind. You have full control over the configuration from head-to-toe (presentation-to-persistence) to conform to your enterprise development guidelines. It comes packaged with tools to help test and debug your application, and has clear and comprehensive documentation.This book is a collection of Yii2 recipes. Each recipe is represented as a full and independent item, which showcases solutions from real web-applications. So you can easily reproduce them in your environment and learn Yii2 fast and without tears. All recipes are explained with step-by-step code examples and clear screenshots.Yii2 is like a suit that looks great off the rack, but is also very easy to tailor to fit your needs. Virtually every component of the framework is extensible. This book will show how to use official extensions, extend any component, or write a new one.This book will help you create modern web applications quickly, and make sure they perform well using examples and business logic from real life. You will deal with the Yii command line, migrations, and assets. You will learn about role-based access, security, and deployment. We'll show you how to easily get started, configure your environment, and be ready to write web applications efficiently and quickly.Style and approachThe chapters of this book are independent and offer a practical approach to Yii development. You can start reading from the chapter you need most, be it Ajax and jQuery, RESTful Web Services, Database, Active Record, or Official Extensions

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 Yii2 Application Development Cookbook - Third Edition est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Yii2 Application Development Cookbook - Third Edition par Andrew Bogdanov, Dmitry Eliseev en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Programming. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2016
ISBN
9781785281495
Édition
3
Sous-sujet
Programming

Yii2 Application Development Cookbook Third Edition


Table of Contents

Yii2 Application Development Cookbook Third Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it

How it works

There's more

See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Fundamentals
Introduction
Installing the framework
Getting ready
How to do it

Installing a basic project template
Installing advanced project template
How it works

See also
Application templates
How to do it

How it works

Dependency injection container
Getting ready
How to do it

How it works

See also
Service locator
Getting ready
How to do it

How it works

See also
Code generation
Getting ready
How to do it

How it works

Configuring components
Getting ready
How to do it

How it works

Built-in components
See also
Working with events
Getting ready
How to do it

How it works

See also
Using external code
Getting ready
How to do it

Installing a library via Composer
Installing libraries manually
Using Yii2 code in other frameworks
How it works

See also
2. Routing, Controllers, and Views
Introduction
Configuring URL rules
Getting ready
How to do it

How it works

There's more

See also
Generating URLs
Getting ready
How to do it

How it works...
There's more...
See also
Using regular expressions in URL rules
Getting ready
How to do it

How it works

There's more

See also
Using a base controller
Getting ready
How to do it

How it works

There's more

Using standalone actions
Getting ready
How to do it

How it works

See also
Creating a custom filter
Getting ready
How to do it

How it works

See also
Displaying static pages
Getting ready
How to do it

How it works

There's more

About ViewAction
Configuring URL rules
See also
Using flash messages
Getting ready
How to do it

How it works

There's more

The getAllFlashes() method
The removeAllFlashes() method
The removeFlash() method
See also
Using the controller context in a view
Getting ready
How to do it

How it works

There's more

Reusing views with partials
Getting ready
How to do it

How it works

There's more

Using blocks
Getting ready
How to do it

How it works

There's more

Using decorators
Getting ready
How to do it

How it works

See also
Defining multiple layouts
Getting ready
How to do it

How it works

See also
Pagination and sorting data
Getting ready
How to do it

How it works...
See also
3. ActiveRecord, Model, and Database
Introduction
Getting data from a database
Getting ready
How to do it

How it works

There's more...
Defining and using multiple DB connections
Getting ready
How to do it...
How it works...
There's more...
Cross-database relations
See also
Customizing the ActiveQuery class
Getting ready
How to do it...
How it works...
There's more

See also
Processing model fields with AR event-like methods
Getting ready
How to do it...
How it works...
See also
Automating timestamps
Getting ready
How to do it...
How it works

There's more

In addition...
See also
Setting up an author automatically
Getting ready
How to do it

How it works...
There's more

See also
Setting up a slug automatically
Getting ready
How to do it

How it works

There's more

See also
Transactions
Getting ready...
How to do it

See also
Replication and read-write splitting
Getting ready
How to do it

How it works

There's more

See also
Implementing single table inheritance
Getting ready
How to do it

How it works

See also
4. Forms
Introduction
Writing your own validators
Getting ready
How to do it...
How it works...
See also
Uploading files
Getting ready
How to do it...
How it works...
There's more...
See also
Adding and customizing CaptchaWidget
Getting ready
How to do it...
How it works...
There's more...
Customizing Captcha
Getting ready
How to do it...
See also
Creating a custom input widget
Getting ready
How to do it...
How it works...
There's more...
See also
Tabular input
Getting ready
How to do it...
How it works...
See also
Conditional validation
Getting ready
How to do it...
How it works...
See also
Complex forms with multiple models
Getting ready
How to do it...
How it works...
See also
AJAX-dependent drop-down list
Getting ready
How to do it...
How it works...
AJAX validation
Getting ready
How to do it...
How it works...
See also
Creating a custom client-side validation
Getting ready
How to do it...
How it works...
There's more...
See also
5. Security
Introduction
Authentication
Getting ready
How to do it...
How it works...
See also
Using controller filters
Getting ready
How to do it...
How it works...
See also
Preventing XSS
Getting ready
How to do i...

Table des matiĂšres