Index
A
- ACF
- creating, for user authorization / Example – creating an ACF to authorize the users
- ACF, and RBAC
- mixing / Mixing ACF and RBAC
- action
- creating / Creating Controller and Action
- actions
- adding, to REST API controller / New controller action
- ActiveForm
- ActiveRecord
- used, for manipulating data / Using ActiveRecord to manipulate data
- methods / Using ActiveRecord to manipulate data
- rooms list, querying with / Example – query rooms list with ActiveRecord
- ActiveRecord models
- sharing, among applications / Sharing ActiveRecord models among applications
- ActiveRecord relational data
- displaying, in grid's column / Displaying and filtering ActiveRecord relational data in a grid's column
- advanced template
- used, for splitting frontend / Using an advanced template to split frontend and backend
- used, for splitting backend / Using an advanced template to split frontend and backend
- URL, customizing in / Customizing a URL in the advanced template
- using, in same domain / Example – using the advanced template in the same domain
- using, in shared hosting / How to use the advanced template in the shared hosting
- REST app, configuring in / Configuring a REST app in the advanced template
- AJAX
- using / Using AJAX
- alarm flag
- setting, for expired reservation / Example – setting an alarm flag for expired reservation
- API documentation
- generating / Generating an API documentation
- used, for generating doc of app and services / Example – using an API documentation to generate a doc of app and services
- application
- configuring, init used / Configuring an application using init
- application components
- request / Common application components
- cache / Common application components
- user / Common application components
- errorHandler / Common application components
- mailer / Common application components
- log / Common application components
- db / Common application components
- application events
- handling / Handling application events
- application properties
- about / Application properties
- id / Application properties
- basePath / Application properties
- aliases / Application properties
- bootstrap / Application properties
- catchAll / Application properties
- components / Application properties
- language / Application properties
- modules / Application properties
- name / Application properties
- params / Application properties
- timeZone / Application properties
- charset / Application properties
- defaultRoute / Application properties
- applications
- ActiveRecord models, sharing among / Sharing ActiveRecord models among applications
- authentication
- about / Authentication
- HTTP Basic Auth / Authentication
- query parameter / Authentication
- OAuth 2 / Authentication
- enabling / Authentication
- used, for obtaining customers list / Example – using authentication to get a customers list
- available rooms
- displaying, in frontend site / Example – displaying available rooms in the frontend site
B
- backend
- splitting, advanced template used / Using an advanced template to split frontend and backend
- basic folder, Yii2's application structure
- assets / Application structure
- commands / Application structure
- config / Application structure
- mail / Application structure
- models / Application structure
- runtime / Application structure
- tests / Application structure
- vendor / Application structure
- views / Application structure
- web / Application structure
- bootstrap template
- used, for creating controller / Example – create a controller to display the static news items list and details using the bootstrap template
- Bootstrap widget
- using / Using the Bootstrap widget
C
- cache component
- about / Common application components
- carousel
- widget, creating with / Example – creating a widget with a carousel
- commands, for retrieving data
- common view content
- splitting, into reusable views / Splitting the common view content into reusable views
- components
- Composer
- about / Installing Yii2 with Composer
- Yii2, installing with / Installing Yii2 with Composer
- URL / Installing Yii2 with Composer
- console
- output, formatting from / Formatting the output from the console
- console applications
- interacting with / Interacting with console applications
- console controller
- creating / Creating a console controller
- contact page
- adding / Example – add a contact page
- content negotiation
- about / Creating a controller
- controller
- creating / Creating Controller and Action, Creating a controller
- data, sending to view / How the controller sends data to view
- creating, for static news items list display / Example – create a controller to display the static news items list and details using the bootstrap template
- creating, for room management / Example – creating a controller to manage rooms
- createUrl() method
- cron jobs
- implementing / Implementing and executing cron jobs
- executing / Implementing and executing cron jobs
- CRUD
- generating, Gii used / Using Gii to generate CRUD
- used, for managing rooms / Example – using CRUD to manage rooms, reservations, and customers using Gii
- used, for managing reservations / Example – using CRUD to manage rooms, reservations, and customers using Gii
- used, for managing customers / Example – using CRUD to manage rooms, reservations, and customers using Gii
- CSS
- used, for displaying advertising columns / Example – using JavaScript and CSS to display advertising columns that disappear if not enough space is available
- custom authentication method
- creating, for application / Customizing authentication and response
- custom columns
- displaying, in grid / Custom columns in a grid
- customer and reservation models
- creating, in same view / Example – creating a customer and reservation in the same view
- customers list
- obtaining, authentication used / Example – using authentication to get a customers list
- customize CSS / Customize JavaScript and CSS
- customize JavaScript / Customize JavaScript and CSS
- custom responses
- creating / Other forms of export – RSS
- custom URL rules
D
- data
- sharing, between views and layout / Sharing data between views and layout
- manipulating, ActiveRecord used / Using ActiveRecord to manipulate data
- DataProvider, for grids
- about / DataProvider for grids
- date
- formatting / Format date, time, and numbers
- datepicker
- using / Example: using datepicker
- DB
- used, for translating room descriptions / Example – translating room descriptions using DB
- DB-based translations
- about / DB-based translations
- db component
- about / Common application components
- DB connection
- DB connection configuration
- about / Configuring a DB connection
- rooms, creating / Example – creating rooms, customers, and reservations tables
- customers, creating / Example – creating rooms, customers, and reservations tables
- reservations, creating / Example – creating rooms, customers, and reservations tables
- data, exporting to local SQLite DB / Example – configuring a second DB connection to export data to a local SQLite DB
- debug toolbar
- configuring / Configuring the debug toolbar
- default language
- setting / Setting the default language
- documentation
- about / Generating an API documentation
- dynamic box
- adding, for advertising info display / Example – add a dynamic box to display advertising info
E
- e-mail
- sending, with summary of new daily reservations / Example – sending an e-mail with new reservations of the day
- errorHandler component
- about / Common application components
- expired reservation
- alarm flag, setting for / Example – setting an alarm flag for expired reservation
F
- file-based translations
- about / File-based translations
- using, for entire website / Example – using file-based translation for the entire website
- file controller
- creating / Creating Controller and Action
- files
- uploading / Uploading files
- image of room, uploading / Example – uploading an image of a room
- filters, in GridView
- about / Filters in GridView
- footer row customization
- GridView, extending for / Example – extending GridView to customize the footer row in a grid
- form
- room, creating from / Example – creating and updating a room from a form
- room, updating from / Example – creating and updating a room from a form
- frontend
- splitting, advanced template used / Using an advanced template to split frontend and backend
- creating, for public access / Example – creating frontend for public access
- frontend site
- available rooms, displaying in / Example – displaying available rooms in the frontend site
G
- Gii
- used, for creating room model / Using Gii to create room, customer, and reservation models
- used, for creating customer model / Using Gii to create room, customer, and reservation models
- used, for creating reservation model / Using Gii to create room, customer, and reservation models
- used, for generating CRUD / Using Gii to generate CRUD
- GMT (Greenwich Mean Time) / Setting up the GMT time zone
- GMT time zone
- setting up / Setting up the GMT time zone
- grid
- using / Using a grid
- custom columns, displaying in / Custom columns in a grid
- GridView
- about / Introduction, DataProvider for grids
- extending, for footer row customization / Example – extending GridView to customize the footer row in a grid
H
- Hello world example, with Yii basic template and bootstrap template / Example – Hello world from scratch with the Yii basic template and bootstrap template
- HTTP Basic Auth
- about / Authentication
I
- identityClass class
- methods / Creating a user login
- init
- used, for configuring application / Configuring an application using init
J
- JavaScript
- used, for displaying advertising columns / Example – using JavaScript and CSS to display advertising columns that disappear if not enough space is available
L
- layout
- with dynamic block / Layout with dynamic block
- layout background
- modifying, based on URL parameter / Example – change the layout background based on a URL parameter
- lazy loading / Working with relationships
- linked models
- saving, in same view / Saving linked models in the same view
- log component
- about / Common application components
- logger
- using / Using the logger
- login form
- creating, example / Example – a login form to access
M
- mailer component
- about / Common application components
- message command / Example – using file-based translation for the entire website
- methods, ActiveRecord
- validate() / Using ActiveRecord to manipulate data
- save() / Using ActiveRecord to manipulate data
- delete() / Using ActiveRecord to manipulate data
- methods, identityClass class
- findIdentity() / Creating a user login
- findIdentityByAccessToken() / Creating a user login
- getId() / Creating a user login
- getAuthKey() / Creating a user login
- validateAuthKey() / Creating a user login
- Model
- creating / Creating a Model, Example – a Model to store room data
- Model-View-Controller (MVC) design pattern, Yii2
- about / The MVC pattern in Yii2
- Model base class, features
- attribute declaration / Creating a Model
- attribute labels / Creating a Model
- massive attribute assignment / Creating a Model
- scenario-based validation / Creating a Model
- modules
- creating / Creating modules
- multiple customers
- saving, at same time / Example – saving multiple customers at the same time
- multiple database connections
- multiple grids
- displaying, on one page / Multiple grids on one page
- multiple layouts
- multiple models
- finding, in same view / Multiple models in the same view
N
- naming convention
- about / Naming convention
- numeric fields
- formatting / Format date, time, and numbers
O
- OAuth 2
- about / Authentication
- objects, Yii2
- Models / Application structure
- Views / Application structure
- Controllers / Application structure
- Components / Application structure
- Application Components / Application structure
- Widgets / Application structure
- Filters / Application structure
- Modules / Application structure
- Extensions / Application structure
- output
- formatting, from console / Formatting the output from the console
P
- parameters, URL rule
- defaults / The complete URL rule parameters
- encodeParams / The complete URL rule parameters
- host / The complete URL rule parameters
- mode / The complete URL rule parameters
- name / The complete URL rule parameters
- pattern / The complete URL rule parameters
- route / The complete URL rule parameters
- suffix / The complete URL rule parameters
- verb / The complete URL rule parameters
- PHP Data Objects (PDO)
- about / Configuring a DB connection
- placeholders formatting
- about / Placeholders formatting
- Pretty URLs
- using / Using pretty URLs
- public access
- frontend, creating for / Example – creating frontend for public access
Q
- query parameter
- about / Authentication
R
- RBAC
- overview / RBAC
- configuring, for setting permissions / Example – configuring RBAC to set permissions for users
- relationships
- working with / Working with relationships
- used, for connecting rooms, reservations, and customers / Example – using a relationship to connect rooms, reservations, and customers, How to save a model from a form
- renderPartial() method
- reference link / Splitting the common view content into reusable views
- render partial, in view
- example / Example – render partial in view
- request component
- about / Common application components
- reservation
- rooms list, obtaining for / Example – getting a rooms list for a reservation
- reservation details
- loading, from customers' drop-down lists / Example – reservation details loaded from the customers' drop-down lists
- reservations, and rooms grids
- managing, in same view / Example: managing the reservations and rooms grids in the same view
- reservations list
- displaying, by clicking on customer grid row / Example – displaying a reservations list by clicking on a customer grid row
- response
- returning, with attributes / Example – status response node in data received
- REST API controller
- actions, adding to / New controller action
- REST app
- configuring, in advanced template / Configuring a REST app in the advanced template
- reusable views
- common view content, splitting into / Splitting the common view content into reusable views
- room descriptions
- translating, DB used / Example – translating room descriptions using DB
- rooms list
- querying, with ActiveRecord / Example – query rooms list with ActiveRecord
- obtaining, for reservation / Example – getting a rooms list for a reservation
- RSS response formatter
- about / Other forms of export – RSS
- creating, for available rooms / Example – creating an RSS with a list of available rooms
- rule class
- creating / Creating the rule class
S
- shared hosting
- advanced template, using in / How to use the advanced template in the shared hosting
- SQL query
- static pages
- creating / Creating static pages
- summarized footer row, in grid / A summarized footer row in a grid
T
- time
- formatting / Format date, time, and numbers
U
- URL
- customizing, in advanced template / Customizing a URL in the advanced template
- URL pattern
- multilanguage view support / The URL pattern to support the multilanguage view
- URL rule
- parameters / The complete URL rule parameters
- user authorization
- configuring / Configuring user authorization
- ACF, creating for / Example – creating an ACF to authorize the users
- user component
- about / Common application components
- user login
- creating / Creating a user login
- users' roles
- managing, for controller actions access / Example – managing users' roles to access rooms, reservations, and customers
V
- view
- creating, for news list display / Creating a view to display a news list
W
- WhatIsMyIP.com
- widgets
- about / Creating widgets
- creating / Creating widgets
- creating, with carousel / Example – creating a widget with a carousel
Y
- Yii
- reference link, for database tables / DB-based translations
- Yii2
- tools / Requirements and tools
- requisites / Requirements and tools
- installing, with Composer / Installing Yii2 with Composer
- application structure / Application structure
- objects / Application structure
- Model-View-Controller (MVC) design pattern / The MVC pattern in Yii2