Index
A
- access control and filters
- references / See also
- access control filters
- reference / See also
- ActiveQuery class
- customizing / Customizing the ActiveQuery class, How to do it..., How it works...
- references / See also
- Active Record
- reference / See also
- Active Record (AR)
- advanced application template
- advanced project template
- installing / Installing advanced project template
- Advanced template
- URL / How it works...
- AJAX-dependent drop-down list
- about / AJAX-dependent drop-down list, Getting ready, How to do it...
- working / How it works...
- AJAX validation
- about / AJAX validation, How to do it...
- working / How it works...
- application configurations
- reference / See also
- application directory structures
- uses, reference / See also
- application structures
- reference / See also
- application templates / Application templates, How it works…
- application webroot
- moving / Moving an application webroot, How it works...
- files, placing / Placing files in the root
- files, placing in subdirectory / Placing files in a subdirectory
- AR event-like methods
- model fields, processing with / Processing model fields with AR event-like methods, How to do it..., How it works...
- assets
- combining / Combining and minimizing assets, How to do it…, How it works…
- minimizing / Combining and minimizing assets, How to do it…, How it works…
- reference / See also
- Atoum
- used, for unit testing / Unit testing with Atoum, How it works…
- extension structure, preparing / Preparing the extension structure
- extension code, writing / Writing the extension code
- extension tests, writing / Writing the extension tests
- tests, executing / Running tests
- code coverage, analyzing / Analyzing code coverage
- references / See also
- authentication
- about / Authentication
- implementing / Getting ready, How it works...
- reference / See also
- authentication, REST web services
- references / See also
- authentication client
- about / Authentication client
- using / Getting ready, How to do it…
- working / How it works…
- references / How it works…
- author
- setting up, automatically / Setting up an author automatically, How to do it…, How it works...
B
- base controller
- using / Using a base controller, How to do it…, There's more…
- example / There's more…
- reference link / There's more…
- basic project template
- installing / Installing a basic project template
- Behat
- about / Unit testing with Behat, How it works…
- used for creating shopping cart extension / How to do it…
- references / See also
- Behavior Driven Design (BDD)
- about / How it works…
- behaviors
- reference / See also
- BlameableBehavior,
- reference / See also
- blocks
- using / Using blocks, How to do it…, How it works…
- reference link / How it works…
- bootstrap alert
- reference link / See also
- Bower-to-Composer adapter
- build-in cache
- reference / See also
- built-in components / Built-in components
- built-in helpers
- examples, reference / See also
C
- cache chains
- cache dependencies
- caching
- caching overview
- reference / See also
- Captcha
- customizing / Customizing Captcha, How to do it...
- references / See also
- Captcha widget
- CLI commands
- creating / Creating CLI commands, How to do it…
- working / How it works…
- Closure Compiler
- reference / See also
- Codeception
- used, for testing Yii2 application / Testing application with Codeception, Getting ready, How it works…
- about / Testing application with Codeception
- references / See also
- code generation / Code generation, How to do it…, How it works…
- command-line mode / Installing advanced project template
- compiler.jar file
- URL, for downloading / Getting ready
- complex forms
- multiple models, using for / Complex forms with multiple models, Getting ready, How to do it..., How it works...
- components
- creating / Creating components, How to do it…, Overriding existing application components
- existing application components, overriding / Overriding existing application components
- working / How it works…
- reference / See also
- Composer
- library, installing via / Installing a library via Composer
- composer
- reference / Getting ready
- Composer package
- about / Installing the framework
- references / Getting ready
- conditional validation
- about / Conditional validation, How to do it..., How it works...
- reference / See also
- configuration parts
- moving, into separate files / Moving configuration parts into separate files, How to do it..., How it works...
- console components
- reference link / See also
- context information
- using / Logging and using the context information, How to do it..., How it works...
- logging / Logging and using the context information, How to do it..., How it works...
- reference link / See also
- controller context
- used, in view / Using the controller context in a view, How it works…
- controller filters
- controllers
- reference link / How it works...
- reference / See also, See also
- controllers map
- reference / See also
- Cron daemon
- reference / See also
- cron jobs
- executing / Implementing and executing cron jobs, How it works...
- implementing / Implementing and executing cron jobs, How it works...
- Hello command, running / Running the Hello command
- custom command, creating / Creating your own command
- cron schedule, setting / Setting the cron schedule
- cross-database relations
- about / Cross-database relations
- CSRF
- about / Preventing CSRF
- preventing / Preventing CSRF, How to do it..., How it works...
- disabling, for all actions / There's more...
- disabling, for specification / There's more...
- validation, for Ajax-calls / CSRF validation for Ajax-calls
- extra measures / Additionally [rename]
- GET operations, using appropriately / Using GET and POST properly
- POST operations, using appropriately / Using GET and POST properly
- references / See also
- currency rates
- URL / Creating components
- custom client-side validation
- creating / Creating a custom client-side validation, How to do it..., How it works...
- references / See also
- custom errors
- displaying / Displaying custom errors, Getting ready, How to do it..., How it works...
- custom input widget
- creating / Creating a custom input widget, How to do it..., How it works...
- custom view renderer
- creating / Creating a custom view renderer, How to do it…
- working / How it works…
D
- data
- pagination / Pagination and sorting data, How to do it…, How it works...
- sorting / Pagination and sorting data, How to do it…, How it works...
- obtaining, from database / Getting data from a database, How to do it…, How it works…
- database
- data, obtaining from / Getting data from a database, How to do it…, How it works…
- databases, in Yii
- references / There's more...
- data decryption
- data encryption
- decorators
- using / Using decorators, How it works…
- URL / How it works…
- dependency injection container / Dependency injection container, How to do it…, How it works…
- Dependency Inversion Principle (DIP)
- about / Dependency injection container
- references / See also
- deployer
- reference / See also
- deployment
- simplifying, with multiple configurations / Using multiple configurations to simplify the deployment, Getting ready, How to do it..., How it works...
- deployment tools
- about / Deployment tools
- remote host, preparing / Step 1 - Preparing the remote host
- localhost, preparing / Step 2 - Preparing the localhost
- remote configuration, adding / Step 3 - Adding remote configuration
- deploy command, running / Step 4 - Trying to deploy
- working / How it works...
E
- ElasticSearch engine adapter
- about / ElasticSearch engine adapter
- using / ElasticSearch engine adapter, How to do it…
- query class, using / Using the Query class
- ActiveRecord, using / Using ActiveRecord
- ElasticSearch DebugPanel, using / Using the ElasticSearch DebugPanel
- references / See also
- entity tag
- about / Entity Tag
- error handling
- about / Error handling, How it works…
- reference / See also
- reference link / See also
- error handling, in Yii
- reference link / See also
- event handling / Handling events
- events
- reference / See also
- external code
- using / Using external code
- Composer, installing via library / Installing a library via Composer
- manual library, installing / Installing libraries manually
- Yii2 framework code, used / Using Yii2 code in other frameworks, How it works…
- reference link / See also
F
- faker fixture data generator
- about / Faker fixture data generator
- using / How to do it…
- custom data types, working with / Working with your own data types
- references / See also
- files
- uploading / Uploading files, How to do it..., How it works..., There's more...
- file upload
- references / See also
- filter
- creating / Creating a custom filter, How to do it…, How it works…, See also, Creating filters, How to do it…
- about / Creating filters
- working / How it works…
- reference / See also
- flash messages
- using / Using flash messages, How to do it…, The removeFlash() method
- getAllFlashes() method / The getAllFlashes() method
- removeAllFlashes() method / The removeAllFlashes() method
- removeFlash() method / The removeFlash() method
- fzaninotto/faker
- about / Faker fixture data generator
G
- Geckodriver
- URL, for downloading / Running acceptance tests
- getRateLimit() method / How it works…
- Gii code generator
- about / Gii code generator
- using / Getting ready
- GUI, working with / Working with GUI
- CLI, working with / Working with CLI, How it works…
- references / See also
- Gii module
- reference link / How it works…
- GridView widget
- about / How to do it…
H
- helpers
- creating / Creating helpers, How to do it…
- working / How it works…
- reference / See also
- HHVM
- Yii2, running on / Running Yii2 on HHVM, How to do it…, How it works…
- HHVM installation
- references / How to do it…, See also
- HHVM usage
- reference / See also
- HipHop bytecode (HHBC)
- about / Running Yii2 on HHVM
- HipHop Virtual Machine (HHVM)
- about / Running Yii2 on HHVM
- HTTP caching
- leveraging / Leveraging HTTP caching, Getting ready, How to do it…
- last-modified / Last-Modified
- entity tag / Entity Tag
- reference / See also
- HTTP caching in Yii2
- reference / See also
I
- Imagine library
- about / Imagine library
- using, as factory / Using it as a factory
- inner methods, using / Using inner methods
- references / See also
J
- Java Runtime Environment
- URL, for installation / Running acceptance tests
- Java Runtime Environment (JRE)
- about / Getting ready
- URL, for downloading / Getting ready
L
- last-modified
- about / Last-Modified
- layouts
- URL / See also
- library
- Composer, installing via / Installing a library via Composer
- loadAllowance() method / How it works…
- log filters
- reference link / See also
- logging
- reference link / See also
- log routes
- using / Using different log routes, How to do it..., How it works..., See also
- YiiTopicnTopicntrace, versus Yii / Yii::trace versus Yii::getLogger()->log
- YiiTopicnTopicngetLogger()->log, versus Yii / Yii::trace versus Yii::getLogger()->log
- YiiTopicnTopicnbeginProfile / Yii::beginProfile and Yii::endProfile
- YiiTopicnTopicnendProfile / Yii::beginProfile and Yii::endProfile
- messages / Log messages immediately
M
- maintenance mode
- displaying / Maintenance mode, How to do it..., How it works...
- production ready solution check, URL / See also
- manual library
- installing / Installing libraries manually
- Markdown syntax
- reference / See also
- master-slave replication
- reference / Getting ready
- model behaviors
- creating / Creating model behaviors, Getting ready, How to do it…
- working / How it works…
- model fields
- processing, with AR event-like methods / Processing model fields with AR event-like methods, How to do it..., How it works...
- modules
- creating / Creating modules, How to do it…
- working / How it works...
- reference / See also
- MongoDB driver
- about / MongoDB driver
- working with / Getting ready, How to do it…, How it works…
- basic usage / Basic usage
- references / See also
- Mozilla Firefox
- URL, for installation / Running acceptance tests
- multilanguage application
- creating / Creating a multilanguage application, How to do it…
- working / How it works…
- multiple configurations
- used, for simplifying deployment / Using multiple configurations to simplify the deployment, Getting ready, How to do it..., How it works...
- multiple DB connections
- defining / Defining and using multiple DB connections, How to do it..., How it works...
- using / Defining and using multiple DB connections, How to do it..., How it works...
- reference / See also
- multiple files
- uploading / There's more...
- multiple layouts
- defining / Defining multiple layouts, How to do it…, How it works…
- multiple models
- using, for complex forms / Complex forms with multiple models, Getting ready, How to do it..., How it works...
- reference / See also
O
- OpenServer application
- URL, for downloading / Getting ready
P
- package
- URL, for installation / Getting ready
- packagist
- URL / How to do it…
- pagination
- reference link / See also
- passwords
- working with / There's more…
- reference / See also
- performance profiling
- reference / See also
- performance tuning
- PHP coding standards
- reference / See also
- PHP framework
- installating / Installing the framework, Getting ready, How it works…
- basic project template, installing / Installing a basic project template
- advanced project template, installing / Installing advanced project template
- PHP include
- reference / See also
- PHP require
- reference / See also
- PHP standards recommendations
- URL / How to do it…
- PHPUnit
- used, for unit testing / Unit testing with PHPUnit, How it works…
- extension structure, preparing / Preparing extension structure
- extension code, writing / Writing extension code
- extension tests, writing / Writing extension tests
- tests, executing / Running tests
- code coverage, analyzing / Analyzing code coverage
- component, usage / Usage of component
- PHPUnit usage
- URL / See also
- Pjax jQuery plugin
- about / Pjax jQuery plugin
- using / Getting ready, How to do it…
- custom ID, specifying / Specifying a custom ID
- ActiveForm, using / Using ActiveForm
- client-side script, working with / Working with the client-side script, How it works…
- references / See also
R
- rate limiting
- about / Rate limiting
- implementing / Getting ready, How to do it…, How it works…
- references / See also
- read-write splitting
- about / Getting ready, How to do it…
- references / See also
- Redis database driver
- about / Redis database driver
- using / Getting ready
- direct usage / Direct usage
- ActiveRecord, using / Using ActiveRecord
- working / How it works…
- references / See also
- regular expressions
- used, in URL rules / Getting ready, How to do it…, How it works…, There's more…
- rendering view
- reference link / There's more…
- renderRecords method
- syntax / How it works…
- performance / How it works…
- extra features / How it works…
- best for / How it works…
- replication
- about / Getting ready, How to do it…
- references / See also
- RESTful web services
- REST server, creating / Creating a REST server
- authentication / Getting ready, How to do it..., How it works…
- rate limiting / Rate limiting, How to do it…, How it works…
- versioning / Versioning, How to do it…, How it works…
- error handling / Error handling, How it works…
- REST server
- creating / Creating a REST server, Getting ready, How to do it…, How it works…
- content negotiation / Content negotiation
- Rest URL rule, customizing / Customizing the Rest URL rule
- references / See also
- reusable controller
- external controller actions, creating / How it works…
- reusable controller actions
- creating / Creating reusable controller actions
- delete action, creating / Creating reusable controller actions, Getting ready, How to do it…
- reusable controllers
- creating / Creating reusable controllers, How to do it…
- working / How it works…
- Role-Based Access Control (RBAC)
- about / Using RBAC
- using / Using RBAC, How to do it..., How it works…
- hierarchy, keeping simple and efficient / Keeping hierarchy simple and efficient
- RBAC nodes, naming / Naming RBAC nodes
- references / See also
- routing
- reference link / How it works...
S
- Sakila database
- URL, for downloading / Getting ready, Getting ready, Getting ready
- saveAllowance() method / How it works…
- scope
- about / There's more…
- security
- about / Introduction
- Selenium Standalone Server
- URL, for downloading / Running acceptance tests
- semantic versioning
- reference / See also
- Semantic Versioning rules
- URL / How to do it…
- service locator
- about / Service locator, How to do it…, How it works…
- reference link / See also
- session handling
- speeding, up / Speeding up session handling, How to do it…
- speeding up / How it works…
- shopping cart extension
- creating, Behat used / How to do it…
- structure, preparing / Preparing extension structure
- code, writing / Writing extension code
- tests, writing / Writing extension tests
- tests, executing / Running tests
- single table inheritance
- about / Implementing single table inheritance
- implementing / Implementing single table inheritance, How to do it…, How it works…
- references / See also
- slug
- about / Setting up a slug automatically
- setting up, automatically / Setting up a slug automatically, How to do it…, How it works…
- sluggable behavior
- about / Setting up a slug automatically
- references / See also
- Smarty
- URL / See also
- Smarty view renderer
- reference / See also
- sort
- reference link / See also
- SQL injection
- about / Preventing SQL injections
- preventing / Getting ready, How to do it..., How it works...
- references / See also
- SSH keys
- creating, reference / See also
- standalone actions
- using / Using standalone actions, Getting ready, How to do it…, How it works…
- reference link / See also
- standalone validator
- creating / Writing your own validators, How to do it..., How it works...
- static pages
- displaying / Displaying static pages, How to do it…, About ViewAction
- ViewAction / About ViewAction
- URL rule, configuring / Configuring URL rules
- reference link / See also
- SwiftMailer e-mail library
- about / SwiftMailer e-mail library, How to do it…
- plain text mail, sending / Sending plain text e-mails
- HTML content, sending / Sending HTML content
- SMTP transport, working with / Working with SMTP transport
- file attaching / Attaching file and embedding images
- images, embedding / Attaching file and embedding images
- working / How it works…
- references / See also
T
- tabular input
- about / Tabular input, Getting ready, How to do it...
- implementing / How it works...
- reference / See also
- tests/README.md file
- references / See also
- timestamps
- automating / Automating timestamps, Getting ready, How to do it..., How it works…
- Post model, configuring / There's more…
- example, for updating last_login field / In addition...
- reference / See also
- transactions
- about / Transactions
- example / Getting ready..., How to do it…
- references / See also
- Twitter Bootstrap extension
- about / There's more...
- URL / There's more...
U
- unit testing
- PHPUnit, used / Unit testing with PHPUnit, How it works…
- Atoum, used / Unit testing with Atoum, How it works…
- Universally Unique Identifier (UUID)
- about / Installing a library via Composer
- URL, for installing / Installing a library via Composer
- URL
- generating / Generating URLs, How to do it…, How it works...
- urlManager
- reference link / There's more...
- URL rules
- configuring / Getting ready, How to do it…, How it works…, There's more…
- regular expressions, used / Using regular expressions in URL rules, How to do it…, How it works…, There's more…
- user agent strings
- reference / How it works...
- User model, from advanced app
- reference / How it works...
V
- validator
- references / See also
- validator processes
- controlling / There's more...
- versioning
- about / Versioning
- implementing / Getting ready, How to do it…, How it works…
- references / There's more…
- view
- controller context, used / Using the controller context in a view, How it works…
- reference link / There's more…
- reusing, with partials / Reusing views with partials, How to do it…, How it works…
- ViewAction
- defaultView / About ViewAction
- layout / About ViewAction
- viewParam / About ViewAction
- viewPrefix / About ViewAction
- reference link / See also
- view renderers
- references / See also
- views counter panel, creating
- reference link / See also
W
- web-interface mode / Installing advanced project template
- web application components
- reference link / See also
- web session
- reference link / See also
- widget
- references / See also
- creating / Creating a widget, How to do it…
- working / How it works…
- reference / See also
X
- X-Rate-Limit-Limit / How it works…
- X-Rate-Limit-Remaining / How it works…
- X-Rate-Limit-Reset / How it works…
- XDebug PHP extension
- URL, for installation / Getting coverage reports, Analyzing code coverage
- URL / Analyzing code coverage
- XSS
- about / Preventing XSS
- preventing / Preventing XSS, Getting ready, How to do it..., How it works...
- types / XSS types
- references / See also
Y
- Yii
- references / See also
- application profiling / Profiling an application with Yii, Getting ready, How to do it…, How it works…
- reference, for installing on shared hosting environment / See also
- Yii**t() method
- about / How it works…
- Yii2
- extensions / Introduction
- URL, for installation / Getting ready, Getting ready, Getting ready
- internationalization, reference / See also
- configuring, best practices / Following best practices, How to do it…, How it works…
- running, on HHVM / Running Yii2 on HHVM, How to do it…, How it works…
- Yii2 application
- testing, Codeception used / Testing application with Codeception, Getting ready, How it works…
- tests, preparing / Preparing for the tests
- functional tests, executing / Running unit and functional tests
- unit tests, executing / Running unit and functional tests
- coverage reports, obtaining / Getting coverage reports
- acceptance tests, executing / Running acceptance tests
- database fixtures, creating / Creating database fixtures
- unit test, writing / Writing unit or integration test
- integration test, writing / Writing unit or integration test
- functional test, writing / Writing functional test
- acceptance test, writing / Writing acceptance test
- acceptance, writing / Writing acceptance test
- API test suite, creating / Creating API test suite
- Yii2 console commands
- reference / See also
- Yii2 framework code
- using / Using Yii2 code in other frameworks, How it works…
- reference link / See also
- Yii2-debug extension
- custom panel / Custom panel for debug extension, How to do it..., How it works...
- event handling / Handling events
- reference link / See also
- yii2-faker extension
- about / How it works…
- Yii Active Record implementation
- reference / See also
- Yii application
- references / See also
- components, configuring / Configuring components, How it works…
- built-in components / Built-in components
- events, working / Working with events, How to do it…, How it works…
- Yii application, events
- example / How it works…
- reference link / See also
- Yii directory layout
- modifying / Changing the Yii directory layout, Getting ready, How it works...
- runtime directory location, modifying / Changing the location of the runtime directory
- vendor directory location, modifying / Changing the location of the vendor directory
- controllers location, modifying / Changing the location of the controllers
- views directory location, modifying / Changing the locations of the views directory
- Yii error stack trace
- Yii extensions
- creating / Making extensions distribution-ready, How to do it…
- working / How it works…
- YUI Compressor
- reference / See also
- yuicompressor.jar file
- URL, for downloading / Getting ready