Skip to main content

Yii Terms 3

 

1) Active Record (AR)

यह Yii का ORM है जो database की table को PHP class की तरह use करने देता है।
SQL लिखने की जगह object properties से काम होता है।
यह query, insert, update और delete को बहुत आसान बना देता है।


2) ActiveQuery

यह AR के साथ SQL queries को chain-style में बनाने का तरीका है।
find()->where()->orderBy() जैसे methods देता है।
इससे raw SQL लिखने की जरूरत कम हो जाती है।


3) ActiveDataProvider

GridView/ListView को data देने का built-in तरीका है।
Pagination, sorting अपने-आप काम करते हैं।
बड़े data को UI में handle करना आसान हो जाता है।


4) Access Control Filter (ACF)

यह बताता है कि कौन user कौन सा action access कर सकता है।
Login required, role based access आदि इसी से होते हैं।
Security का सबसे basic और आसान तरीका है।


5) Access Rules

हर action के लिए allow/deny conditions define करने के rules।
Roles, user status, HTTP method के आधार पर check करता है।
App को unauthorized access से बचाता है।


6) Actions (Inline/Standalone)

Inline actions = Controller की simple methods।
Standalone actions = अलग class में defined होते हैं (Captcha, Upload आदि)।
यह controller के काम को organized बनाते हैं।


7) Aliases (@app, @web, @runtime, @vendor)

Paths और URLs को short और easy बनाने के लिए shortcuts।
Hard-coded paths लिखने की जरूरत खत्म हो जाती है।
Yii में हर जगह aliases use करने की सलाह दी जाती है।


8) Application Lifecycle

Yii ऐप कैसे start होकर request process करता है, इसकी पूरी journey।
Entry script → config load → routing → controller → view → response।
इसे समझना पूरे framework को समझने की key है।


9) Application Components

Yii के अंदर db, mail, request, response, session जैसे core services।
इन्हें Yii::$app से access किया जाता है।
हर component configurable होता है।


10) Application Configuration (web.php / console.php)

App की सभी settings array format में define की जाती हैं।
Components, db, aliases, url manager सब यहीं set होते हैं।
Yii का 90% behavior config से control होता है।


11) Asset Bundles

CSS और JS files को group बनाकर manage करने का तरीका।
Dependencies automatically handle करता है।
Front-end को organize रखता है।


12) Asset Manager

CSS/JS को publish, cache और minify करने वाला system।
Asset bundles को process करता है।
Theme या front-end बदलने में helpful।


13) API (RESTful API)

Yii का REST framework JSON-based APIs बनाने में मदद करता है।
GET/POST/PUT/DELETE methods built-in supported हैं।
Authentication, rate-limiting जैसी सुविधाएँ शामिल हैं।


14) ActiveForm Widget

Form बनाने का सबसे आसान तरीका।
Model rules के आधार पर auto-validation करता है।
Ajax validation भी सपोर्ट करता है।


15) Ajax Validation

Form fields को live validate करने की सुविधा।
Page reload नहीं होता।
User experience smooth बनती है।


16) Authentication

User login और identity check का system।
IdentityInterface user object define करता है।
Login, logout और session इसी से चलता है।


17) Authorization (RBAC)

User क्या कर सकता है, यह permission-based system तय करता है।
Role → permission → access इसकी hierarchy है।
Complex access control आसानी से हो जाता है।


18) Autoloading (PSR-4)

Yii classes को automatically load करता है।
Manually require/include लिखने की जरूरत नहीं।
Composer standard follow करता है।


19) ArrayHelper

Arrays को sort, merge, extract करने की utilities।
बहुत सारे small tasks simplify करता है।
Yii के views और controllers में बहुत useful।


20) Attribute Labels

Model fields के readable नाम define करता है (जैसे name → "Full Name")।
Forms और GridViews में उपयोग होता है।
User friendly UI बनाने में मदद करता है।


21) Attribute Hints

Form fields के लिए छोटी help text।
User को बताता है कि क्या input करना है।
Yii इसे simple text या dynamic logic से generate कर सकता है।


22) AR Relations (hasOne, hasMany, viaTable)

Tables के बीच relationship define करता है।
इसी से related data fetch करना आसान हो जाता है।
Join queries बेहद simple लगती हैं।


23) Advanced Template

Frontend + backend + console structure वाला Yii का pre-built boilerplate।
Large applications के लिए recommended।
User management और RBAC ready आते हैं।


24) ActiveRecord Scenarios

Different situations के लिए अलग validations लागू करने का तरीका।
Signup, login, update — हर case के rules अलग हो सकते हैं।
Complex forms के लिए बहुत useful है।

25) Base Controller (yii\web\Controller)

यह Yii के सभी controllers की base class है।
Common logic (auth check, layout set, beforeAction) यहीं define किया जाता है।
इसे extend करके हर controller बनाया जाता है।


26) BaseModel (yii\base\Model)

यह Yii में सभी models की main parent class है।
Validation rules, scenarios, attributes का core system इसी पर चलता है।
ActiveRecord भी इसी BaseModel से extend होता है।


27) Basic Application Template

Yii2 का simple starter template है।
Frontend और backend हिस्से एक ही app में होते हैं।
Beginner-level projects के लिए सबसे अच्छा है।


28) Behavior

Classes में बिना inheritance के extra logic जोड़ने का तरीका है।
Behaviors events पर काम करते हैं (जैसे beforeSave, afterFind)।
उदाहरण: TimestampBehavior automatically created_at और updated_at भर देता है।


29) Bootstrap Components

वे components जो application start होते ही run हो जाते हैं।
Logging, modules init, events register करना इसी में होता है।
config में "bootstrap" => [...] के माध्यम से set किए जाते हैं।


30) Batch Insert

एक बार में कई rows insert करने का high-speed तरीका।
Single query में हजारों rows insert हो जाती हैं।
Performance-heavy apps में बहुत useful है।


31) Batch Query

Data को chunks में fetch करने का तरीका है।
कम memory में बड़ी table process की जा सकती है।
उदाहरण: लाखों rows को loop में पढ़ना।


32) Breadcrumbs

यह एक navigation trail है (Home → Category → Product)।
User को पता रहता है कि वह website में कहाँ है।
Yii में Breadcrumbs widget available है।


33) Built-in Validators

Yii के predefined validation rules का set है।
जैसे — required, email, number, boolean, unique, file, compare।
Model rules में directly add कर सकते हैं।


34) BeforeAction()

Action चले उससे पहले automatic यह method call होता है।
आप यहाँ authentication, permission checks लगा सकते हैं।
हर controller में override किया जा सकता है।


35) AfterAction()

Action complete होने के बाद यह trigger होता है।
Post-processing, logs और response formatting के लिए useful है।
हर controller इसे override कर सकता है।


36) BaseApplication

Yii\web\Application और Yii\console\Application दोनों की base class।
App lifecycle, components load, env settings इसी से control होते हैं।
यह पूरे framework का entry point मैनेज करती है।


37) BaseObject

Yii में किसी भी object की default parent class।
इसमें object configuration और property initialization का system built-in है।
Yii का component system इसी पर आधारित है।


38) BaseEvent

Yii में events को represent करने वाली root class है।
Event handlers इसे receive करते हैं और इसी से data access करते हैं।
Custom events को इसी से extend किया जाता है।


39) BaseMigration

Migration files इसी class को extend करते हैं।
Database create/alter करने के लिए safe methods देती है।
Rollback या redo आसानी से किया जा सकता है।


40) BaseUrlRule

Custom URL rewriting rules बनाने के लिए उपयोग होता है।
आप अपना route logic पूरी तरह customize कर सकते हैं।
Advanced routing के लिए powerful tool है।


41) BaseView

View rendering का main system handle करता है।
File locate करना, variables pass करना, layouts apply करना सभी इसी में होता है।
Yii की सभी view-related functions इसी पर आधारित हैं।

42) Caching

यह data को temporary store करने का तरीका है ताकि बार-बार calculation न करनी पड़े।
Yii में file, DB, Redis, Memcache जैसे कई cache drivers available हैं।
App performance कई गुना तेज हो जाती है।


43) CacheComponent

यह Yii का internal cache manager है जो सभी cache methods (get, set, delete) हैंडल करता है।
आप config में इसे file, DB, Redis आदि सेट कर सकते हैं।
Caching का सारा काम इसी component से होता है।


44) Cache Dependency

Cache कब expire होगा यह rule define करती है।
जैसे — कोई file बदले तो cache भी refresh हो जाए।
Dynamic और smart caching के लिए useful है।


45) Captcha

Yii का built-in image verification system है।
Form में bots को रोकने के लिए use किया जाता है।
CaptchaAction और Captcha widget दोनों available हैं।


46) Component (yii\base\Component)

Yii का most important building block है।
Events और Behaviors attach किए जा सकते हैं।
Yii::$app में हर service एक component होती है (db, session, mail)।


47) Configuration (Config Files)

App की सभी settings arrays में define होती हैं — web.php, console.php आदि।
Components, modules, params, aliases सब यहीं register होते हैं।
Yii का पूरा behavior config-driven है।


48) Console Application (yii\console\Application)

यह command-line scripts (cron, migrations) चलाने वाली app है।
Controllers को “console controllers” कहा जाता है।
Background jobs और maintenance tasks के लिए जरूरी है।


49) Console Commands

Yii में custom CLI commands बनाए जा सकते हैं।
php yii migrate, php yii controller/create जैसे commands चलते हैं।
Automation और scripting के लिए powerful होते हैं।


50) Controller

Yii का MVC में “C” हिस्सा है जो request को process करता है।
Actions define करता है और डेटा को views तक भेजता है।
Routing system controller actions से जुड़ता है।


51) Controller Actions

यह controller के वो methods हैं जो actual request handle करते हैं।
Example: actionIndex(), actionCreate()
URL → Action method mapping ऑटोमैटिक होता है।


52) Controller Filters

Actions से पहले और बाद extra checks लगाने की सुविधा।
जैसे — AccessControl, VerbFilter, PageCacheFilter।
Security और performance के लिए उपयोगी है।


53) Cookie

User browser में small data save करने का तरीका।
Login remember-me, language preference आदि इसमें stored रहते हैं।
Yii में CookieCollection से handle किया जाता है।


54) Cookie Validation

Yii automatically cookies को sign करता है ताकि कोई modify न कर सके।
Security को strong बनाता है।
Config में enable/disable किया जा सकता है।


55) CSRF Protection

Cross-site request forgery से सुरक्षा का system।
Yii हर form में hidden CSRF token डालता है।
Forms को hack होने से बचाता है।


56) CSRF Token

यह एक unique value है जो हर request के साथ भेजी जाती है।
Server verify करके ही request accept करता है।
Fake या harmful requests reject हो जाती हैं।


57) CRUD Operations

Create, Read, Update, Delete — basic database operations।
Gii इसे seconds में generate कर देता है।
Web apps में सबसे ज्यादा इस्तेमाल होने वाला pattern।


58) Custom Validators

Model rules में आप अपना logic लिखकर validation बना सकते हैं।
Either inline function या separate Validator class।
Complex validation scenarios के लिए useful है।


59) CListView

Data को scrollable list की तरह show करने वाला widget।
Pagination और templates support करता है।
ListView से अलग CSS layout देता है।


60) CGridView (Deprecated but important term)

Yii1 का पुराना table widget है।
Yii2 में इसका आधुनिक रूप GridView है।
Historical term होने के कारण include किया गया।


61) Client Script / JS Registration

View में JS code inject करने का तरीका।
$this->registerJs() या $this->registerJsFile() से add होता है।
Front-end behavior control करने के लिए जरूरी है।


62) Composite Primary Keys

जब table में primary key दो या ज्यादा columns से मिलकर बनती है।
Yii2 इसका support देता है लेकिन manually handle करना पड़ता है।
Relation और AR operations थोड़े complex हो जाते हैं।


63) Custom URL Rule

आप अपना URL pattern define कर सकते हैं।
SEO-friendly और clean URLs बनाने में helpful।
BaseUrlRule को extend करके create किया जाता है।

64) DataProvider

यह GridView / ListView को paginated data देने वाला system है।
Sorting, filtering, pagination अपने-आप handle करता है।
Large datasets को UI में दिखाने के लिए जरूरी होता है।


65) ActiveDataProvider

ActiveRecord queries के लिए सबसे commonly used data provider है।
User::find() जैसी queries को pagination format में convert करता है।
GridView के साथ सबसे ज्यादा use होता है।


66) SqlDataProvider

Raw SQL query results को data provider format में देता है।
Complex queries या joins के लिए helpful है।
Pagination और sorting manually set की जाती है।


67) ArrayDataProvider

Array में मौजूद data को list/grid में show करने के काम आता है।
APIs या custom data structures के लिए useful है।
Pagination option available होता है।


68) Data Validation

Form inputs को सही format में check करने का built-in system।
Model rules के आधार पर काम करता है।
Security और clean data सुनिश्चित करता है।


69) Database Component (db)

Yii::$app->db database से connect होने वाला main component है।
PDO extension पर आधारित है।
Queries, transactions, schema सब इसी से चलता है।


70) Database Connection

DB host, username, password, charset वगैरह config में define होते हैं।
Yii auto-reconnect और safe queries manage करता है।
Multi-DB support भी available है।


71) Database Transactions

कई queries को एक unit की तरह safely run करने का तरीका।
अगर कोई query fail हो जाए तो rollback हो जाता है।
Money/payment systems में बहुत जरूरी है।


72) Database Migration

Database changes को version control की तरह manage करता है।
Create table, drop table, add column सब code में लिखा जाता है।
Rollback और history track करना आसान होता है।


73) DB Query Builder

SQL queries को PHP methods से बनाने का तरीका।
select()->from()->where() format में query बनती है।
Raw SQL की जरूरत कम हो जाती है।


74) DB Commands

सीधे database को command भेजने वाला layer।
Raw SQL execute, batch insert, scalar values fetch करना आसान।
Yii में low-level DB operations इसी से चलते हैं।


75) Debug Toolbar

Browser की bottom bar में request की पूरी जानकारी दिखाता है।
SQL queries, time, memory, route, logs सब real-time दिखते हैं।
Development में सबसे powerful tool है।


76) Debug Module

Yii के अंदर full debugging panel है।
Profiling, log tracking, request history सब इसमें stored रहता है।
Advanced debugging के लिए required है।


77) Dependency Injection (DI)

Classes को loosely connect करने का तरीका।
Objects को automatically create और inject किया जाता है।
Testing और reusable code बनाने में helpful है।


78) DI Container

Yii का internal object-creation manager।
Services, components, classes को auto-resolve करता है।
Large applications में बहुत powerful है।


79) Default Controller

जब URL में controller ना दिया जाए तो Yii इसी controller को run करता है।
Config में सेट किया जाता है।
Usually “site” controller default होता है।


80) Default Action

Controller का वो action जो URL में action missing होने पर run होता है।
Usually actionIndex()
यह user को default page दिखाने में helpful है।


81) Dispatching

Request को सही controller और action तक पहुँचाने की प्रक्रिया।
Yii router automatically dispatch करता है।
MVC flow का main step है।


82) Dynamic Relational Queries

Yii में relations को dynamically modify और filter किया जा सकता है।
with(), joinWith() जैसे methods use होते हैं।
Complex DB relationships को आसान रूप में handle करता है।


83) Dynamic Forms

Forms में fields add/remove करने की सुविधा।
Multiple addresses, phones, photos जैसी entries के लिए perfect है।
AJAX + JS के साथ powerful UI देता है।


84) Directory Structure

Yii की folder layout (controllers, models, views, components) predefined है।
Beginner के लिए सीखना आसान बनाता है।
हर file का purpose clear रहता है।


85) Data Filtering

User input को filter और sanitize करने का system।
Validator rules और FilterValidator से किया जाता है।
Security और clean data के लिए जरूरी है।


86) Data Formatting

Dates, currency, numbers को readable format में convert करता है।
Yii formatter component उपलब्ध है।
Multi-language apps में helpful है।


87) Data Access Layer (DAL)

Models, ActiveRecord और QueryBuilder मिलकर DAL बनाते हैं।
Database से बात करने का clean तरीका मिलता है।
MVC architecture में आसान maintain होता है।

88) Events

Yii में events किसी action के होने पर trigger होते हैं।
आप इन पर custom functions attach कर सकते हैं।
beforeSave, afterValidate जैसे कई built-in events मौजूद हैं।


89) Event Handlers

ये वो functions होते हैं जो किसी event के fire होने पर चलाए जाते हैं।
इन्हें object या global level पर register किया जा सकता है।
App को modular और clean बनाते हैं।


90) Event Dispatching

जब कोई event emit होता है तो उससे जुड़े सारे handlers run होते हैं।
Yii का event manager यह automatically handle करता है।
Loose coupling और flexibility बढ़ाता है।


91) Error Handling

Yii errors को catch करके user-friendly format में दिखाता है।
Friendly error pages और detailed debugging दोनों available हैं।
Production और development modes अलग तरह से behave करते हैं।


92) Error Handler Component

यह फ़ैसला करता है कि exception कैसे show हो या log हो।
Custom error pages इसी के जरिए manage किए जाते हैं।
App stability के लिए बेहद महत्वपूर्ण component है।


93) Exception

जब कोई code unexpected error पैदा करे तो Yii exception throw करता है।
आप try–catch से इसे handle कर सकते हैं।
Yii कई predefined exception classes देता है।


94) Extensions

Plugins या packages जो Yii में extra functionalities जोड़ते हैं।
इन्हें Composer से install किया जाता है।
Kartik widgets जैसे popular Yii2 extensions widely used हैं।


95) Extension Installer

Composer का system जो Yii extensions को auto-configure करता है।
Autoloading, namespaces और config merge अपने-आप हो जाता है।
Developer को manual setup नहीं करना पड़ता।


96) Email Sending (Mailer)

Yii में mail भेजने के लिए mailer component मिलता है।
SMTP, sendmail या file transport सब support करता है।
Views का उपयोग करके HTML templates भी भेज सकते हैं।


97) Eager Loading

Related records को एक ही query में fetch करने की तकनीक।
with() method से किया जाता है।
N+1 query problem खत्म हो जाती है।


98) Encryption

Sensitive data को सुरक्षित रखने के लिए Yii security component encrypt/decrypt methods देता है।
Password, tokens, keys में उपयोग किया जाता है।
Strong cryptographic algorithms उपयोग करता है।


99) Environment Constants (YII_ENV)

App किस environment में चल रही है—dev, prod या test—यह define करते हैं।
Error display और debugging इसी पर depend करते हैं।
Config files में behavior बदलने के लिए helpful है।


100) Environment Configurations

Dev, test, production के लिए अलग settings रखी जा सकती हैं।
जैसे debugging, caching, mail logs, API keys आदि।
Large apps में बेहद जरूरी है।


101) Entry Script (index.php)

यह Yii app की शुरुआत का पहला file होता है।
App create होकर config load करता है और run() करता है।
Public folder में स्थित रहता है।


102) End User Application

User के लिए visible हिस्सा — controllers, views, modules।
Backend, frontend दोनों इसी category में आते हैं।
App का main working area यही है।


103) External Resources

CDN scripts, external APIs और third-party servers से मिलने वाला data।
Yii में इन्हें components या services की तरह integrate किया जा सकता है।
Caching और error handling जरूरी होता है।


104) Exporting Data

GridView से CSV, Excel export third-party extensions से किया जाता है।
Backend reporting systems में बहुत उपयोग होता है।
Kartik Grid extension इस काम के लिए famous है।


105) Expression Dependencies

Cache dependency की एक प्रकार जिसमें expression बदलने पर cache expire होता है।
जैसे किसी table count बदलने पर cache reset हो जाए।
Dynamic caching के लिए useful है।


106) Expression Validators

Validation rules जो logical expressions evaluate करते हैं।
Complex input conditions को आसानी से सेट किया जा सकता है।
Model में inline rule की तरह लिखा जाता है।


107) Embedded JS/CSS

Yii views में CSS/JS embed करने के तरीके—registerCss, registerJs।
Asset bundles और inline scripts दोनों support करता है।
UI behavior customize करने में helpful है।

108) Filters (AccessControl, VerbFilter)

Filters controller actions के पहले/बाद extra logic चलाने का तरीका हैं।
AccessControl roles के आधार पर access देता/रोکتا है।
VerbFilter किसी action को GET/POST जैसे specific methods तक सीमित करता है।


109) Form Handling

Yii form बनाना, submit करना और validate करना आसान बनाता है।
ActiveForm widget से forms auto-generated हो जाते हैं।
Model rules आधार पर validation automatic होती है।


110) Form Validation

Models में लिखे rules input को check करते हैं।
required, email, unique जैसे कई built-in validators होते हैं।
Validation server-side + client-side दोनों होती है।


111) Formatter Component

Date, time, number, currency को readable format में बदलता है।
Yii::$app->formatter के जरिए access होता है।
Localization (L10n) के अनुसार formats change हो सकते हैं।


112) Flash Messages

Temporary messages — केवल एक request के बाद show होते हैं।
Success, error, info जैसे alerts दिखाने के लिए।
Session के ऊपर оснित होते हैं।


113) File Uploads

Yii UploadedFile class से file upload handle करता है।
Size, extension और type validation आसानी से लगाया जाता है।
Model + form मिलकर secure upload process बनाते हैं।


114) Fixtures (Testing)

Testing में predefined test data automatically load करने का system।
Database setup को fast और repeatable बनाता है।
Codeception के साथ आमतौर पर use किया जाता है।


115) Framework Structure

Yii का मुख्य structure MVC + Component-based architecture पर चलता है।
Models, Views, Controllers और Components organized तरीके से रखे जाते हैं।
Advanced template में Frontend + Backend + Console अलग-अलग होते हैं।


116) Frontend/Backend Separation

Advanced template में site दो हिस्सों में बाँटी जाती है।
Frontend = public site, Backend = admin panel।
दोनों का अपना controllers, models और views होते हैं।


117) Factory Pattern

Yii components को config देकर create करने के लिए factory pattern उपयोग करता है।
इससे reusable और configurable objects बनाना आसान होता है।
DI container भी इसी principle पर काम करता है।


118) Foreign Keys in AR

ActiveRecord में relations define करते समय foreign keys use होते हैं।
hasOne और hasMany relations इन्हीं keys के आधार पर काम करते हैं।
Database joins को simple PHP syntax में बदल देते हैं।


119) Form Widgets

TextInput, DropDownList, Checkbox, Radio आदि जैसे UI form elements।
ActiveForm के अंदर इन widgets को आसानी से call किया जाता है।
Validation और labels automatically handle होते हैं।


120) Formatter for Dates/Numbers

Dates को dd-mm-yyyy या locale अनुसार format किया जाता है।
Currencies, percentages, decimals भी auto-format होते हैं।
International apps के लिए बहुत उपयोगी है।


121) Fields (Model Field Mapping)

Fields define करते हैं कि response में कौन-से attributes शामिल होंगे।
REST API में यह बहुत उपयोगी है।
Unwanted fields hide कर सकते हैं।


122) File-Based Caching

Caching को files में store करने की सरल caching technique।
Small apps के लिए recommended है।
Request speed बढ़ाने में मदद करता है।


123) Filters in Query (Where, FilterWhere)

filterWhere optional filtering देता है—empty values auto-ignore हो जाते हैं।
Search models में widely used होता है।
Cleaner search queries बनाने में मदद करता है।


124) Form Events

beforeValidate और afterValidate जैसे events forms पर trigger होते हैं।
Custom validation logic और additional tasks में उपयोग होता है।
Form lifecycle automation में helpful है।


125) Form Models

Models जिनका main काम केवल user input validate करना होता है।
इन्हें database table की जरूरत नहीं होती।
LoginForm इसका common example है।


126) File Processing

Uploaded images/files को resize, crop या rename किया जा सकता है।
Yii में image extensions इस काम में help करती हैं।
Storage folder में organized तरीके से रखा जाता है।


127) Flash Session Keys

संदेश को store करने के लिए unique key (success, error)।
Request खत्म होते ही delete हो जाता है।
Alert boxes में display होता है।

128) Gii (Code Generator)

Yii का built-in code generator जो Model, Controller, CRUD, Form आदि auto-create करता है।
Developer का समय बचाता है और code clean बनाता है।
Browser में /gii से access होता है।


129) GridView

Data को table format (rows–columns) में show करने का widget।
Sorting, filtering, pagination सब built-in होता है।
DataProvider के साथ काम करता है।


130) Global Parameters (Yii::$app->params)

App-wide settings जैसे siteName, adminEmail यहाँ store होते हैं।
params.php file में define और पूरे app में accessible।
Configuration को centralized करने का तरीका।


131) GET/POST Data (Yii::$app->request->get(), post())

User की request से डाटा पाने का तरीका।
GET = URL से data लेना, POST = form/submission से।
Request component इसे सुरक्षित तरीके से handle करता है।


132) Generators (Model/CRUD/Controller via Gii)

Gii कई प्रकार के generators देता है—Model, CRUD, Controller, Form, Module।
ये developer के repetitive काम reduce करते हैं।
Auto-coded structure framework standards follow करता है।


133) Global Events

पूरे application level पर होने वाले events।
जैसे app start, app end, request start/end।
इन पर custom listener attached किया जा सकता है।


134) Guard Clauses

Action के शुरू में invalid conditions रोकने का clean coding तरीका।
जैसे user login न हो तो early return कर देना।
Code readable और safe बनाता है।


135) Group Query / Aggregate Functions

SQL के count(), sum(), avg() आदि methods AR या QueryBuilder में use होते हैं।
Reporting या analytics के लिए helpful हैं।
Yii इन functions को fluent तरीके से लिखने देता है।


136) Global Exception Handling

Yii error/exception को पकड़कर एक central handler से manage करता है।
Friendly error pages show करता है और logs maintain करता है।
Development में debug panel error details दिखाता है।


137) General Helper Methods

Html, ArrayHelper, UrlHelper जैसे helpers common काम आसान करते हैं।
Static methods से directly उपयोग होते हैं।
Boilerplate code कम कर देते हैं।


138) Grid Columns Customization

GridView में columns को format, hide, sort या custom template से modify कर सकते हैं।
Value callback से dynamic content दिखा सकते हैं।
Images, badges, links भी उसी में show हो सकते हैं।


139) Gii Model Generator

Database tables से direct Model class बना देता है।
Relations भी auto-detect करके create कर देता है।
Time-saving और error-free process है।


140) Gii CRUD Generator

Model से CRUD pages — index, create, update, view — auto-create करता है।
Forms और GridView खुद generate हो जाते हैं।
Beginners के लिए Yii का सबसे उपयोगी tool है।


141) Gii Form Generator

Login, Contact जैसे custom input forms create करने का आसान तरीका।
Model + validation rules के साथ form तुरंत बन जाता है।
Manual coding की जरूरत कम पड़ती है।


142) Gii Controller Generator

Basic controller structure with actions auto-generate करता है।
Large apps में repetitive controllers quickly बनाते समय उपयोगी है।
Namespace और base class खुद handle करता है।


143) Gii Module Generator

Complete module (controller + model + views folder structure) बना देता है।
Large applications को छोटे हिस्सों में divide करने में helpful।
Admin, API, Report modules commonly ऐसे divide होते हैं।


144) Globally Accessible Components

Yii::$app->db, Yii::$app->user, Yii::$app->request जैसे components globally available हैं।
इनका इस्तेमाल कहीं से भी किया जा सकता है।
Dependency injection और component architecture पर आधारित।


145) Grid Filters

GridView में instant filtering input boxes।
SearchModel + DataProvider मिलकर live filter बनाते हैं।
Admin tables में widely used।


146) Gzip Compression

Yii response को gzip compress कर सकता है ताकि data size कम हो।
Faster page load और bandwidth कम उपयोग।
Mostly server-level या middleware से enable किया जाता है।


147) Gii Interface Customization

आप Gii में templates override करके custom CRUD/UI बना सकते हैं।
Team standards के अनुसार code style बदलना आसान हो जाता है।
Large companies में modernization के लिए उपयोगी है।

148) Helpers (Html, Url, ArrayHelper)

Helpers common काम आसान बनाने वाली static classes हैं।
Html helper HTML tags बनाता है, Url helper URLs बनाता है।
ArrayHelper arrays को modify, filter, merge करने में मदद करता है।


149) HiddenInput Widget

Form में hidden fields बनाने के लिए इस्तेमाल होता है।
यह ऐसे values store करता है जो user नहीं देखता।
CSRF token, IDs जैसी hidden data रखने में उपयोगी है।


150) HTTP Request

User की request को represent करता है — GET, POST, headers, cookies।
Yii::$app->request से access होता है।
Input data को सुरक्षित और structured तरीके से provide करता है।


151) HTTP Response

Server जो content वापस भेजता है उसे represent करता है।
HTML, JSON, XML सब formats support करता है।
Status codes, headers, redirects इसी component से manage होते हैं।


152) Hashing (Security Component)

Password या sensitive data को सुरक्षित रूप से encrypt करने की प्रक्रिया।
Yii bcrypt-based hashing देता है (Security::generatePasswordHash)।
Verify करने के लिए secure compare methods available हैं।


153) Hierarchical RBAC

RBAC roles को parent-child hierarchy में arrange करने की system।
Permissions automatically inherit हो जाते हैं।
Large apps में access control आसान बनाता है।


154) Hooks (beforeSave, afterFind, beforeValidate)

Model lifecycle में automatically चलने वाले special methods।
beforeSave DB save से पहले logic चलाता है, afterFind data load के बाद।
ये customization को आसान और structured बनाते हैं।


155) Handling 404, 403, 500 Errors

Yii exceptions को पकड़कर custom error pages show करता है।
404 = Not Found, 403 = Forbidden, 500 = Server Error।
ErrorHandler component इस पूरी प्रक्रिया को manage करता है।


156) HTML Encoding / Decoding

User input को safe बनाने के लिए encode करना जरूरी है।
Html::encode() XSS attacks रोकने में मदद करता है।
Dynamic content show करते समय encoding बहुत महत्वपूर्ण है।


157) Header Manipulation

Response headers जैसे content-type, cache-control को modify करना।
Yii::$app->response->headers->add() से आसान management।
API responses में बहुत इस्तेमाल होता है।


158) HtmlPurifier

HTML content को clean करके सुरक्षित बनाता है।
JavaScript और harmful content remove कर देता है।
User-generated content दिखाते समय helpful है।


159) HTTP Verbs (GET, POST, PUT, DELETE)

REST API और forms में अलग-अलग काम के लिए अलग HTTP verbs होते हैं।
Yii VerbFilter से actions को particular verbs तक सीमित किया जा सकता है।
Secure और proper routing सुनिश्चित करता है।


160) HTML Helper

HTML tags (input, button, label, links) generate करने वाला helper।
手-स coding कम करता है और syntax साफ रहता है।
ActiveForm के साथ integration seamless है।


161) Hash Validation

Stored hash compare करके password verify किया जाता है।
Yii secure timing-attack safe comparison देता है।
Authentication systems में उपयोग होता है।


162) HTTP Cookies

Small client-side stored data जिसे request-response cycle में भेजा जाता है।
Yii::$app->response->cookies->add() से cookies create होती हैं।
Logins, tracking और preferences में काम आता है।


163) HTTPS Redirection

App को HTTP से HTTPS पर redirect करने की प्रक्रिया।
Security के लिए production apps में जरूरी है।
Yii filters या server config से किया जाता है।


164) Html Attributes Handling

HTML tags में class, id, style जैसी attributes merge करने के तरीके।
Html helper automatically array attributes को handle कर देता है।
Dynamic UI building आसान बनाता है।


165) Hard-coded Paths Avoidance (Aliases)

Hard-coded file paths की जगह @app, @web जैसे aliases use करने की सलाह दी जाती है।
Maintenance आसान होता है और errors कम होते हैं।
Yii alias system पूरे app में flexible paths देता है।


166) Header Response Formats

API response type set करने के लिए header control जरूरी।
JSON/XML formats इसी तरह define होते हैं।
REST controllers में automatic होता है।


167) Helper Methods for Security

Yii का Security helper random keys, tokens और hashes generate करता है।
CSRF tokens भी यही manage करता है।
Secure authentication और session management में helpful है।

168) IdentityInterface

User login/authentication को Yii में implement करने के लिए यह interface जरूरी है।
इसमें findIdentity(), getId() जैसे required methods होते हैं।
User model को login system से connect करता है।


169) Input Validation

User input को validate करने की प्रक्रिया (required, email, unique आदि)।
Yii validation rules model में define होते हैं।
Client-side + server-side validation दोनों मिलकर सुरक्षित input सुनिश्चित करते हैं।


170) Internationalization (i18n)

Yii में app को multi-language बनाने की system।
Yii::t() function से किसी भी text का translation किया जा सकता है।
Messages को अलग language files में रखा जाता है।


171) Interceptors (via Behaviors / Filters)

Actions के पहले/बाद चलने वाला custom logic।
Behaviors और Filters दोनों interceptors की तरह काम करते हैं।
Security, logging और data preprocessing में उपयोगी हैं।


172) Init() Method

Components, controllers या models load होने पर सबसे पहले run होने वाला method।
Initialization logic यहाँ लिखा जाता है।
Parent::init() call करना हमेशा recommended है।


173) Input Filtering

User data को sanitize या format करके सुरक्षित बनाना।
trim, strip_tags, htmlentities जैसे filters मॉडल rules में लगाए जा सकते हैं।
Data clean रहता है और bugs कम होते हैं।


174) Inline Validators

Model के अंदर लिखे inline methods जो custom validation करते हैं।
Rule में 'myValidator' लिखकर method को directly call किया जाता है।
Complex conditions के लिए useful है।


175) IndexAction

Controller में default action होता है जिसे URL के बिना भी access किया जा सकता है।
Example: /site/index या सिर्फ /site/
यह page का main/default view represent करता है।


176) Import Aliases

Yii में @app, @runtime, @webroot जैसे aliases path shortcuts हैं।
इनसे file paths और URLs manage करना आसान हो जाता है।
Hard-coded paths की ज़रूरत नहीं रहती।


177) Input Sanitization

User text को harmful scripts से clean करना।
HTMLPurifier या Html::encode इसका मुख्य तरीका है।
XSS attacks से बचाने में मदद करता है।


178) Image Handling

Yii में image uploads, resize, crop आदि extensions के माध्यम से आसान हैं।
UploadedFile class images को safely upload करती है।
Thumbnails बनाने के लिए कई Yii packages available हैं।


179) Inflector Helper

Words को pluralize, slug बनाना, camelCase के साथ convert करना।
Yii automatically readable URLs बनाने में इसका उपयोग करता है।
Naming conventions apply करने में helpful है।


180) Input Widgets

Dropdown, checkbox, radio, datepicker जैसे UI components।
ActiveForm में automatically integrate होते हैं।
Form को interactive और attractive बनाते हैं।


181) Identity Cookie (Remember Me)

Remember me login feature के लिए identity cookie store होती है।
User को बार-बार login नहीं करना पड़ता।
Yii इसे encrypt करके सुरक्षित रखता है।


182) Inheritance in Models

Models Yii\BaseModel को extend करके properties inherit करते हैं।
Common logic को parent class में रखा जा सकता है।
Code reuse और clean structure मिलता है।


183) Internal Routing

Yii URL को internal controller/action में map करता है।
URL Manager rules के आधार पर यह mapping होती है।
Pretty URL system का मुख्य हिस्सा है।


184) Input Types (GET, POST, PUT, DELETE)

Different HTTP methods से अलग input आता है।
Yii request component इन सभी data को decoded रूप में देता है।
REST API के लिए आवश्यक है।


185) In-memory Caching

Data को RAM में store करने की caching technique (APC, Redis)।
Database queries और heavy operations तेजी से चलते हैं।
High-performance apps में commonly इस्तेमाल होता है।


186) Input Masks

Form inputs के लिए predefined patterns जैसे phone number, date।
User wrong format enter नहीं कर पाता।
UI को smooth और error-free बनाता है।


187) Interactive Console Commands

Yii console app में interactive prompts possible होते हैं।
Migration, seeding, queue processing जैसे tasks run होते हैं।
Developer productivity बढ़ाता है।

188) JSON Response (asJson())

Yii में asJson() method data को JSON format में convert करके response भेजता है।
REST APIs, mobile apps और AJAX requests में commonly use होता है।
Response headers भी खुद JSON-compatible set हो जाते हैं।


189) JSON Encoding / Decoding

Yii JSON को encode/decode करने के लिए PHP के json_encode/json_decode का wrapper उपयोग करता है।
Arrays और objects को आसानी से JSON string में बदला जा सकता है।
API data communication में यह base format है।


190) Join With (Relations)

joinWith() method relational tables को join करके combined data fetch करता है।
ActiveRecord relations (hasOne, hasMany) पर आधारित होता है।
Eager loading और complex queries आसान बनाता है।


191) jQuery Integration (Assets)

Yii default रूप से jQuery को asset bundle के रूप में provide करता है।
ActiveForm, Pjax और client-side validation jQuery पर depend करते हैं।
Custom JS files भी आसानी से register किए जा सकते हैं।


192) JavaScript Registration (registerJs(), registerJsFile())

View में custom JS add करने के लिए Yii ये methods देता है।
Inline script या external JS file दोनों register की जा सकती हैं।
Priority और position भी set किया जा सकता है (HEAD/BODY end)।


193) JWT Authentication

REST API authentication के लिए JSON Web Tokens उपयोग किए जाते हैं।
User login के बाद JWT generate होता है और हर request में भेजा जाता है।
Yii में JWT libraries integrate करके secure API बनाई जा सकती है।


194) JSON Formatter

Yii के formatter component से JSON output readable और formatted बनती है।
Pretty print, encoding options, special characters handling आसान हो जाता है।
Debugging और API testing में helpful।


195) JSONP Response

Cross-domain requests के लिए JSONP format use होता है।
Yii asJsonp() method provide करता है।
Callback function wrapping करके data return करता है।


196) JS Asset Bundles

Yii में JS/CSS files bundles के रूप में register होती हैं।
आप custom JS bundle create करके पूरे app में reuse कर सकते हैं।
Versioning और dependency management भी handle होता है।


197) JavaScript Events with jQuery

Yii forms और widgets में client-side events attach किए जा सकते हैं।
onChange, click, submit जैसी events आसानी से handle होती हैं।
Interactivity और dynamic UI बनाने में जरूरी हैं।


198) JSON Rules in REST

REST controllers JSON input को automatic parse कर लेते हैं।
Yii request body को array/object में बदल देता है।
Validation और processing आसान हो जाती है।


199) JavaScript Validation

ActiveForm client-side validation के लिए Yii auto-generated JS use करता है।
Rules model से पढ़कर JS validation बनती है।
User बिना submit किए errors देख सकता है।


200) Job Queue (yii2-queue)

Background tasks जैसे email, reports, notifications को queue में भेजा जाता है।
Worker jobs asynchronously चलाते हैं।
Large applications में performance बढ़ाता है।


201) Job Delays / Retry Logic

Queue jobs delay के साथ भी run हो सकते हैं।
Fail होने पर retry mechanism automatic है।
Reliable background processing सुनिश्चित करता है।


202) JSON Schema Validation

API input को JSON schema के अनुसार validate किया जा सकता है।
Complex JSON structures में उपयोगी है।
Yii में external packages के जरिए integrated हो सकता है।


203) JavaScript Code Positioning

JS को HEAD या BODY के end में रखने का option available है।
Proper position performance को impact करता है।
registerJs / registerJsFile में यह setting होती है।


204) Join With Multiple Tables

joinWith एक से अधिक relations join कर सकता है।
Complex reports और dashboards में बहुत useful होता है।
Query automatically optimized रहती है।


205) JsonExpression (DB SQL JSON Functions)

JSON columns वाली DBs में JSON expressions लिखने के लिए use होता है।
PostgreSQL और MySQL JSON functions supported हैं।
Yii query builder से compatibility मिलती है।


206) JavaScript Asset Compression

Production में JS/CSS को compress/minify किया जा सकता है।
Yii asset manager इसे support करता है।
Page load तेज और bundle size छोटा होता है।


207) JsonSerializable Support

Models JSON output देते समय JsonSerializable implement कर सकते हैं।
आप control कर सकते हैं कि कौन-से fields JSON में जाएँ।
यह APIs में बहुत उपयोगी है।

208) Key Concepts (MVC + Component Architecture)

Yii MVC pattern पर चलता है—Model, View, Controller के roles साफ-अलग होते हैं।
Component-based architecture से हर फीचर reusable object के रूप में मिलता है।
इससे code clean, structured और scalable बनता है।


209) Kartik Widgets (Select2, GridView, DatePicker, etc.)

Kartik-v का widget library Yii में advanced UI components देती है।
Select2, DatePicker, FileInput जैसे modern features आसानी से मिल जाते हैं।
Admin panels और forms में सबसे ज्यादा उपयोग होने वाला extension है।


210) Kinds of Views (Main, Layout, Partial)

Main view = specific page का content।
Layout = पूरी site की outer structure (header/footer)।
Partial view = reusable छोटे templates (जैसे form fields)।


211) Kernel Events (on beforeRequest / afterRequest)

App start और finish होने पर trigger होने वाले global-level events।
beforeRequest initialization tasks के लिए, afterRequest cleanup के लिए।
Whole application lifecycle control करने में useful।


212) KeepAlive Components

Server के साथ persistent connection बनाए रखने वाली techniques।
Mostly async tasks, websocket या long polling scenarios में use होता है।
Yii में extensions के जरिए integrate होता है।


213) KeyValue Storage

Simple key-value pairs store करने के लिए cache या DB table use होता है।
Settings, configurations या flags store करने में helpful।
Yii components से इसे आसानी से manage किया जा सकता है।


214) Key-based Caching

Cache keys के आधार पर data store और retrieve किया जाता है।
Unique cache key performance optimization में महत्वपूर्ण है।
Yii cache component multiple backends (file/db/redis) support करता है।


215) Keyboard Input Handling (JS Integration)

Yii के JS features keyboard shortcuts और input handlers allow करते हैं।
RegisterJs() से custom shortcuts define किए जा सकते हैं।
Admin UI में fast navigation के लिए इस्तेमाल होता है।


216) Kartik Grid Enhancements

Kartik GridView default Yii GridView से advanced features देता है।
Export, grouping, inline edit, filters—all built-in।
Large data tables manage करने में बहुत powerful है।


217) Key Generation (Security)

Random keys generate करने के लिए Yii Security component use होता है।
API keys, tokens और password resets में उपयोगी।
Cryptographically-secure methods available हैं।


218) KMP Routing Pattern (Yii URL Normalization)

Yii URL को parse और normalize करके सही route map करता है।
Pretty URLs और custom rules इसी normalization पर आधारित हैं।
SEO-friendly और clean URL system बनता है।


219) K-Factor (Yii Performance Strategy)

K-Factor का मतलब Yii में efficient code writing practices।
कम query, caching, eager loading, optimized AR इसका हिस्सा हैं।
High-performance Yii apps इसी principle को follow करती हैं।


220) Kill Switch (App Maintenance Mode)

App को maintenance mode में डालने का तरीका।
User को “Site under maintenance” page दिखाई देता है।
Config, middleware या filters से activate किया जाता है।


221) Keychain Integration

External keychains या credential managers के साथ integration।
Secure storage के लिए इस्तेमाल होता है (AWS, Google Secrets etc.)।
Yii components के जरिए implement किया जा सकता है।


222) Key Sorting (ArrayHelper)

ArrayHelper arrays को keys के आधार पर sort करने का easy तरीका देता है।
Complex multi-dimensional arrays भी simplify हो जाते हैं।
Data presentation और debugging आसान होती है।

223) Layouts

Layouts पूरे website का common design (header, footer, sidebar) तय करते हैं।
हर view file इसी layout के अंदर render होती है।
इससे UI consistent और maintainable रहता है।


224) Localization (L10n)

Localization का मतलब है content को user की local language, date, number के format में दिखाना।
यह i18n system के साथ काम करता है।
Region-specific formatting आसान हो जाता है।


225) Logging (Yii::info(), Yii::error())

Logging app में होने वाली activities और errors का रिकॉर्ड रखता है।
File, database, email सहित कई targets को support करता है।
Debugging और monitoring के लिए बहुत जरूरी है।


226) Lazy Loading

Lazy loading तब होता है जब related data को जरूरत पड़ने पर ही query की जाती है।
यह by default ActiveRecord में enabled रहता है।
Small apps के लिए ठीक, लेकिन बड़े apps में performance issue ला सकता है।


227) ListView Widget

ListView data को list format में show करने का widget है।
यह pagination और sorting auto support करता है।
Custom templates से UI easily modify किया जा सकता है।


228) Lifecycle of Request

Yii request → routing → controller → action → response का complete lifecycle follow करता है।
Middleware, filters और events इसी flow पर काम करते हैं।
इसे समझने से पूरे framework का architecture clear हो जाता है।


229) LinkPager Widget

Pagination के लिए सुंदर next/previous links generate करता है।
ActiveDataProvider के साथ आसानी से bind होता है।
SEO-friendly pagination URLs भी बनाता है।


230) Logger Component

Logger errors, warnings, info messages collect करता है।
Targets जैसे FileTarget, DbTarget, EmailTarget को support करता है।
Performance monitoring और debugging में उपयोगी।


231) Login / Logout Process

User authentication system login/logout से manage होता है।
Yii::$app->user identity को store करता है (session या token)।
RBAC permissions इसी के बाद लागू होते हैं।


232) LoadModel (findModel())

Controller में findModel() method model को DB से load करता है।
Model न मिलने पर 404 error throw करता है।
CRUD operations में ये हमेशा use होता है।


233) Load Balancing Support

Yii load balancer environments में smooth काम करता है।
Session storage DB/Redis में होने पर multi-server login भी possible।
High-traffic apps में useful feature है।


134) Locking Mechanisms

Yii DB-based locks, mutex और file locks support करता है।
Race condition रोकने में मदद करता है (जैसे double-order submit)।
High concurrency systems में बहुत important।


135) Log Targets (File, DB, Email)

Logs को कहाँ store करना है यह log targets तय करते हैं।
FileTarget फाइल में, DbTarget database में और EmailTarget email भेजता है।
Monitoring and alerting automation में helpful।


136) Linting (Coding Standards)

Yii PHP-CS tools के साथ linting support करता है।
Code clean, readable और bug-free रहता है।
Development team में uniform coding style बनता है।


137) Layout Inheritance

एक layout दूसरे layout को extend कर सकता है (views में flexible design)।
Partial layouts बनाना आसान हो जाता है।
Large UI systems में helpful।


138) ListData (ArrayHelper::map())

ListData form dropdowns और list controls में use होता है।
ArrayHelper::map() models को key-value pair में बदल देता है।
Forms में dynamic data load करना आसान होता है।


139) Log Rotation

Logs size बढ़ने पर auto-rotate होना useful है।
Yii file target rotation support करता है।
Server storage बचाने में मदद करता है।


140) Loading Assets

Yii assets को auto-load करता है—CSS/JS bundles।
AssetBundle define करके versioning भी possible।
Performance के लिए minified files automatically load होती हैं।


141) Layout Parameters ($this->params)

Layout में dynamic parameters पास किए जा सकते हैं।
जैसे page title, breadcrumb, meta tags।
हर view में अलग values pass करना आसान है।


142) List Sorting (Sort Component)

Sorting component user को data ascending/descending दिखाने देता है।
GridView और ListView दोनों में sorting enable होता है।
URL parameters से auto-manage होता है।

143) Models

Model database table का PHP रूप होता है।
इसमें validation rules, business logic और data handling होता है।
MVC में यह core data layer होता है।


144) Migration (yii migrate)

Migration database schema को version-control तरीके से manage करता है।
add column, create table, drop table—all safe तरीके से track होता है।
Teamwork और deployment में यह बहुत उपयोगी है।


145) Modules

Modules app के अंदर छोटे-छोटे sub-apps होते हैं।
जैसे admin module, user module, API module।
Large projects को structured और clean बनाने में मदद करते हैं।


146) Message Translation (i18n Messages)

Yii messages को अलग-अलग भाषा में translate करने की सुविधा देता है।
Yii::t() function dynamic text translation करता है।
Multi-language apps में यह backbone feature है।


147) Middleware (Filters / Behaviors आधारित)

Yii में middleware filters और behaviors की तरह implement होता है।
ये request से पहले/बाद में logic execute करते हैं।
Authentication, logging, access control जैसे काम में उपयोगी।


148) Mailer Component

Yii का Mailer component email भेजने के लिए काम आता है।
SMTP, Gmail, SendGrid, PHPMailer सबको support करता है।
Templates के साथ HTML और text emails भेज सकता है।


149) Mutators & Accessors

Mutators = attribute set होने पर custom logic।
Accessors = attribute get होने पर custom logic।
Yii में यह getter/setter methods के जरिए implement होता है।


150) Model Scenarios

Scenarios अलग-अलग परिस्थितियों के लिए अलग validation rules allow करते हैं।
जैसे login, register, update में अलग rules।
Complex forms और workflows में बहुत जरूरी feature।


151) Multiple Database Connections

Yii एक से ज्यादा databases handle कर सकता है।
config/main.php में कई DB components define किए जा सकते हैं।
Microservices और multi-source data systems में helpful।


152) Model Rules

Rules model validation का सबसे महत्वपूर्ण हिस्सा हैं।
required, unique, email, string, number, custom rules सब यहां define होते हैं।
Save से पहले हर data इन्हीं rules से सत्यापित होता है।


153) Multi-language URLs

URL में language code include करके multi-language behavior बनाया जाता है।
eg: /en/about, /hi/about
i18n और URLManager के साथ integrate होता है।


154) Main Application Config

main config (config/web.php) पूरे app की settings contain करता है।
Components, modules, alias, params सभी यहां define होते हैं।
Yii app की “heart file” कहा जाता है।


155) Mixin Traits

Traits reusable method blocks होते हैं जो किसी भी class में include किए जा सकते हैं।
Code duplication कम होता है।
Utility functions के लिए बहुत useful।


156) Memory Caching

Memory caching data को RAM में store करके speed बढ़ाता है।
Redis, APCu, Memcached support होता है।
High-traffic apps में response time बहुत कम करता है।


157) Model Behaviors

Behaviors model में extra functionality add करते हैं।
जैसे TimestampBehavior created_at और updated_at auto set करता है।
Plug-and-play nature से code short और clean बनता है।


158) Model Inheritance (BaseModel)

Models common logic BaseModel में रखते हैं।
बाकी models इसे extend करते हैं।
Code reuse और maintenance आसान।


159) Model Relations (hasOne, hasMany)

Relations tables के बीच संबंध define करते हैं।
hasOne = 1 record, hasMany = multiple records।
ActiveRecord query relations को आसान बनाता है।


160) Model Events (beforeSave, afterFind)

Yii model में कई lifecycle events होते हैं।
beforeSave DB में data store होने से पहले चलता है।
afterFind record load होने के बाद execute होता है।


161) Migration Down/Up

yii migrate/up changes apply करता है।
yii migrate/down rollback करता है।
Safe and reversible database editing system।


162) Model Attribute Labels

Attribute Labels fields को human-readable नाम देते हैं।
Forms और views में इन्हीं labels का उपयोग होता है।
User-friendly forms बनाने में बहुत जरूरी।


163) Model Default Values

Yii model में attributes के लिए default values set कर सकते हैं।
यह initial form load और blank data में काम आता है।
Validation और saving logic को सरल बनाता है।


164) Model Serialization (REST APIs)

REST APIs में models JSON/XML में convert होते हैं।
Serializer इन्हें सही format में output करता है।
API development में यह core feature है।


165) Model Safe Attributes

Safe attributes वे fields होते हैं जो mass-assignment allow करते हैं।
यह scenarios पर depend करते हैं।
Unwanted data injection से protection मिलती है।


166) Model Dirty Attributes

Dirty attributes वे fields हैं जो पुराने value से बदल गए हों।
Yii detect करता है कि कौन सा field modify हुआ है।
Update operations optimize करने में मदद करता है।


167) Model Validation Errors

Validation fail होने पर errors model में store हो जाते हैं।
Yii errorSummary() और error() से इन्हें show किया जा सकता है।
User-friendly error handling के लिए helpful।

168) Namespaces

Namespaces PHP में classes को logically group करते हैं।
Yii2 PSR-4 autoloading follow करता है जिससे files auto-load होती हैं।
Large project में class name conflict से बचाते हैं।


169) Navigation Widgets (NavBar, Nav)

NavBar और Nav widgets menus और navigation links show करने के लिए उपयोग होते हैं।
Bootstrap-based UI में यह default tools हैं।
Dynamic menu items roles और permissions से auto-control किए जा सकते हैं।


170) Nested Queries

Nested queries बड़े SQL queries को sub-queries में divide करती हैं।
Yii Query Builder और ActiveRecord दोनों में support मौजूद है।
Complex reports और filtering operations में useful।


171) Notification System (Custom)

Yii में notification system manually behaviors, events या database से बनाया जाता है।
Email, toast messages, alerts, SMS तक integrate किया जा सकता है।
User activities और status changes track करने में helpful।


172) Null-safe Operations

Yii null-check को simplify करने के लिए helper functions provide करता है।
isset(), empty() और optional chaining जैसी patterns use होते हैं।
Null errors से बचकर code safe और readable बनता है।


173) NumberFormatter (Yii::$app->formatter)

NumberFormatter numbers को user-friendly format में convert करता है।
Currency, decimal, percentage format आसानी से किए जा सकते हैं।
Localization (L10n) के साथ perfect काम करता है।


174) Namespace Aliasing

Yii aliases का उपयोग करके किसी namespace को छोटा बनाया जाता है।
जैसे: use app\models\User as MyUser
Code readability और flexibility बढ़ती है।


175) Naming Conventions

Yii strict naming conventions follow करता है—models singular, tables plural।
CamelCase classes और snake_case DB columns prefer किया जाता है।
Consistent naming maintenance और debugging सरल करती है।


176) Nested Sets Behavior

Nested Sets Behavior hierarchical data (category tree, menus) manage करने में मदद करता है।
Tree-like structures add/update/delete करना आसान हो जाता है।
E-commerce, blogs और CMS में बहुत popular।


177) Network Requests (HTTP Client)

Yii HTTP Client extension external APIs call करने देता है।
GET/POST/PUT/DELETE requests आसानी से भेज सकते हैं।
API integrations (Paytm, Razorpay, SMS APIs) में उपयोग होता है।


178) NewRecord Detection (isNewRecord)

Model का isNewRecord attribute पता करता है कि data नया है या update हो रहा है।
Insert vs update logic इस flag पर depend करता है।
CRUD operations में essential flag है।


179) Normalization (Input Normalization)

Yii input को sanitize और normalize करके safe बनाता है।
Trimming, encoding, stripping tags—all automatic behavior।
Security और data-cleaning दोनों improve होते हैं।


180) Navigation Path (Breadcrumbs)

Breadcrumbs user को current page का navigation path बताते हैं।
Yii का Breadcrumbs widget इसे auto-generate कर सकता है।
User-friendly UI और SEO दोनों में helpful।


181) NoSQL Integration

Yii2 MongoDB, Redis और ElasticSearch integration support करता है।
ActiveRecord जैसा API इसके लिए भी उपलब्ध है।
Big data और scalable systems में useful।


182) Notification Events

Yii event system से notification triggers easily बनाया जा सकता है।
Like: After user register → send welcome mail।
Automation workflows आसान हो जाते हैं।


183) Null Coalescing (PHP 7+) in Yii code

Yii code में ?? operator missing values के लिए fallback provide करता है।
Default config या user input handle करने में helpful।
Code छोटा और readable बनता है।


184) Navbar Brand Label / Logo

NavBar widget में brand label या logo जोड़ सकते हैं।
Website header में identity दिखाने के लिए useful।
Responsive UI में bootstrap rules follow करता है।


185) Navigation Active States

Yii route के आधार पर active menu item highlight करता है।
User को पता चलता है कि वह कौन से page पर है।
Navigation usability improve होती है।


186) Namespace Grouping (Modules / Components)

Modules और components namespaces से grouped रहते हैं।
Example: app\modules\admin\controllers
Big applications का structure clean और scalable बनता है।


187) Native PHP Functions with Yii

Yii helpers PHP के native functions को enhance करते हैं।
HTML helper, ArrayHelper, Inflector—all advanced features देते हैं।
Developer productivity काफी बढ़ जाती है।

188) Object Configurations

Yii में हर component, widget और class को config array से configure किया जाता है।
इसका मतलब object बनाते समय properties और behaviors predefined सेट किए जा सकते हैं।
Flexible और readable setup के लिए बहुत powerful feature है।


189) Output Filters

Output filters data को render होने से पहले clean या format करने के tools हैं।
HTMLPurifier जैसे filters data को safe बनाते हैं।
XSS protection और clean HTML output के लिए उपयोगी।


190) ORM (Object Relational Mapping)

Yii का ActiveRecord ORM database tables को PHP objects की तरह use करने देता है।
SQL manually लिखने की जरूरत कम हो जाती है।
Relations, validation और query building आसान हो जाता है।


191) Observers (Event System)

Observers Yii events पर automatically trigger होने वाला logic हैं।
जैसे: afterSave → email भेजना।
Workflow automation और clean code के लिए helpful।


192) Optimized Queries

Optimized queries कम memory और कम DB queries में fast results देते हैं।
Yii में eager loading, index use, select() और joins से performance सुधरता है।
High-traffic systems में यह बहुत ज़रूरी होता है।


193) On-demand Data Loading

जब data की ज़रूरत पड़े तभी उस पर query चलाना on-demand loading है।
यह lazy loading जैसा है लेकिन logic developer control करता है।
Memory saving और performance tuning में helpful।


194) OpenAPI Integration

Yii REST APIs को OpenAPI/Swagger के साथ integrate किया जा सकता है।
API documentation auto-generate होता है।
Third-party developers के लिए API समझना आसान होता है।


195) Output Buffering

PHP output buffering pages को memory में store करता है और बाद में send करता है।
Yii layouts, widgets और rendering pipeline में इसका उपयोग करता है।
Complex pages smooth और controlled तरीके से render होते हैं।


196) Object Lifecycle

Yii में हर object का lifecycle होता है: create → init() → use → destroy।
init() में custom initialization logic रखा जाता है।
Reusable और maintainable components बनाने में जरूरी।


197) Object Injection

Dependency Injection (DI) के जरिए objects को constructor या config से inject किया जाता है।
यह classes को loosely-coupled बनाता है।
Testing और reusability दोनों बेहतर होते हैं।


198) OAuth2 Integration

Yii OAuth2 authentication systems (Google, Facebook login) support करता है।
Extensions की मदद से tokens और scopes manage होते हैं।
User auth और API security modern तरीके से implement होती है।


199) Object Storage (Cloud Drivers)

Yii AWS S3, DigitalOcean Spaces, Azure जैसे storage services integrate कर सकता है।
Files local server की बजाय cloud पर store होते हैं।
Large apps और CDNs के लिए बेहतर solution।


200) Object Validation

Yii objects को validate करने के लिए Model validation rules use करता है।
Custom objects पर भी validator apply किया जा सकता है।
Data consistency और safety maintain रहती है।


201) Pagination Offset

Offset वह index है जहाँ से database records fetch शुरू होते हैं।
Yii pagination internally limit + offset use करता है।
Large tables में efficient scrolling provide करता है।


202) Order By (Query Builder)

orderBy() data को sorting के साथ fetch करने का तरीका देता है।
ASC और DESC दोनों formats support होते हैं।
Reports, lists और admin panels के लिए common requirement।


203) Overriding Components

Yii components जैसे user, db, urlManager को override करके customize किया जा सकता है।
App behavior completely बदला जा सकता है।
Framework flexibility का बड़ा example।


204) Output Formatters

Yii formatter component output को readable format में बदलता है।
Date, time, currency, numbers—all formatting manage होता है।
Localization के साथ मिलकर यह बहुत उपयोगी है।


205) One-to-One Relations (hasOne)

hasOne relation दो tables के बीच 1:1 mapping बताता है।
जैसे user → profile।
ActiveRecord से यह बहुत सरल हो जाता है।


206) One-to-Many Relations (hasMany)

hasMany relation एक record से कई records जुड़े हों वो बताता है।
जैसे category → products।
Yii auto joins और eager loading support करता है।


207) Owner Component (in Behaviors)

Behavior का "owner" वह object होता है जिस पर behavior attach किया गया हो।
Owner property से behavior owner की properties/methods access कर सकता है।
Behaviors को powerful बनाता है।


208) Option Arrays (Widget Configs)

Widgets options arrays से customize किए जाते हैं।
HTML attributes, layout settings, labels—all configs में जाते हैं।
UI customization आसान हो जाता है।


209) Object-based Caching

Caching objects directly cache में store किए जा सकते हैं।
Serialized format या array format दोनों options हैं।
Heavy computation वाले data को fast-access बनाता है।


210) Observables (Reactive Patterns)

Events आधारित ऑब्जेक्ट्स reactive behavior show कर सकते हैं।
State change होते ही observers notify होते हैं।
Real-time systems बनाने में helpful।


211) Output Compression

Gzip compression pages के size को कम करके speed बढ़ाता है।
Yii server-level compression आसानी से support करता है।
SEO और performance दोनों improve होते हैं।


212) Object-Oriented Forms

Yii ActiveForm OOP pattern पर चलता है।
Model binding से form fields auto-generate होते हैं।
Validation और security अपने-आप handle होती है।

213) Pagination

Pagination बड़े data को छोटे-छोटे pages में दिखाने का तरीका है।
Yii का Pagination component limit और offset auto-manage करता है।
GridView, ListView और DataProvider में default support है।


214) Pjax

Pjax page के सिर्फ एक हिस्से को reload करता है, पूरा पेज नहीं।
यह AJAX + PushState का combination है।
Data tables, forms और filters को super-fast बनाता है।


215) Pretty URLs

Pretty URLs से URL clean, SEO-friendly और readable बनते हैं।
index.php?r=site/about की जगह /about जैसा सुंदर URL मिलता है।
URL Manager rules से सारे routes control होते हैं।


216) Profiling

Profiling app के slow हिस्सों को detect करने का तरीका है।
Yii debug toolbar profiling को auto-show करता है।
Performance tuning और query optimization में जरूरी।


217) Params (Yii::$app->params)

params global settings store करने के लिए file होती है।
जैसे email, app-name, constants etc.
पूरे application में कहीं भी आसानी से access किया जा सकता है।


218) Path Aliases

Aliases shortcuts path हैं जैसे @app, @runtime, @webroot
Yii files और directories को आसानी से locate कर पाता है।
Custom alias भी define किए जा सकते हैं।


219) Post Validation

Post-validation validation के बाद data को sanitize या modify किया जाता है।
यह model events के साथ implement होता है।
Clean और safe database storage ensure करता है।


220) Post Request Handling

POST requests forms submit करने के लिए use होता है।
Yii request component से POST data safe तरीके से प्राप्त किया जाता है।
CSRF token security auto-enabled रहता है।


221) Preloading Components

Preloading से कुछ components app load होने पर automatically ready हो जाते हैं।
जैसे log, debug, cache।
Performance और early-initialization में helpful।


222) Partial Views

Partial views छोटे reusable HTML blocks होते हैं।
Layout, header, footer, widgets बनाने में useful।
Code repetition कम होता है।


223) PathInfo (Request Component)

PathInfo URL का वह हिस्सा होता है जिसमें route और query parameters होते हैं।
Yii इसी को parse करके controller/action चुनता है।
Routing system का core part है।


224) Permissions (RBAC)

Permissions यह तय करते हैं कि user क्या कर सकता है और क्या नहीं।
Yii RBAC role → permission mapping follow करता है।
Secure and scalable authorization system है।


225) PaginationWidget (LinkPager)

LinkPager सुंदर pagination links generate करता है।
Next, Previous, First, Last सभी buttons auto बनते हैं।
GridView और ListView इसका default partner है।


226) Public Properties

Model और component में declared public properties config और access के लिए use होती हैं।
Yii इन्हें auto-fill और validate करता है।
Forms और widgets में इनकी जरूरत पड़ती है।


227) Page Caching

Page caching पूरे page को cache में store करता है।
Next request में पूरा HTML बिना DB query के serve होता है।
High traffic sites के लिए powerful performance booster।


228) Partial Caching

Page के सिर्फ एक portion को cache किया जा सकता है।
जैसे sidebar, header, menu etc.
Dynamic + static content का perfect balance।


229) Proxy Setup

Yii proxies के पीछे भी सही तरीके से काम करता है।
Request headers detect करके real IP और protocol set करता है।
Cloudflare और load-balancer environments में जरूरी।


230) Pagination with ActiveDataProvider

ActiveDataProvider models के लिए auto pagination create करता है।
Page size और data limits आसानी से set किए जा सकते हैं।
Admin panel और listings में सबसे ज्यादा उपयोग।


231) Path Normalization

Path normalization files और directories के सही physical paths को verify करता है।
Cross-platform compatibility में helpful।
Security और consistency दोनों improve होते हैं।


232) Progress Widget

Progress widget loading या upload status दिखाने के लिए उपयोग होता है।
Bootstrap आधारित simple bar UI show करता है।
User experience smooth बनाता है।


233) Pagination Query Parameters

Yii pagination URL parameters जैसे page=2 auto-handle करता है।
SEO-friendly और customizable query names set किए जा सकते हैं।
Deep linking और shareable pagination pages easy बनते हैं।


234) Page Title Setup

Yii view files में $this->title से page title set होता है।
Layout में auto-include हो जाता है।
SEO और UI में जरूरी।


235) PHP Info Integration

Development में PHP configuration देखने के लिए info page use होता है।
Yii routing से इसे secure तरीके से expose कर सकते हैं।
Server debugging में helpful।


236) Push Notifications (Custom Logic)

Yii में push notifications Firebase/APNs से integrate किए जा सकते हैं।
Events या cron jobs से triggers fired होते हैं।
Mobile apps और dashboards में useful।


237) Password Hashing (Security Component)

Yii Security component BCrypt/Argon2 hashing support करता है।
Password verify and generate methods built-in हैं।
Authentication को secure बनाता है।


238) Pagination for API (REST)

REST API में pagination meta data के साथ return होता है।
Limit, offset, total-count सब JSON में आता है।
Mobile and web APIs में standard feature है।


239) PHPDoc & Annotations

Yii में PHPDoc code understanding आसान बनाता है।
IDE autocomplete और type checking improve होती है।
Large projects में जरूरी।


240) Page Redirects

Yii response component से redirects आसान हो जाते हैं।
Temporary और permanent दोनों redirect supported हैं।
User actions के बाद smooth navigation देता है।


241) Path Security (Directory Traversal Protection)

Yii input को sanitize करके path traversal attacks को रोकता है।
File uploads में यह protection बहुत जरूरी है।
Secure file management ensure करता है।

242) Query Builder

Query Builder PHP code से SQL queries लिखने का आसान तरीका है।
select(), where(), join(), orderBy() functions से query बनती है।
Complex queries भी बिना raw SQL लिखे बन जाती हैं।


243) Query Caching

Query caching से database की result memory में save हो जाती है।
एक ही query repeat होने पर result cache से instantly मिलता है।
Website speed और DB load दोनों कम होते हैं।


244) Quick Prototyping (Gii Code Generator)

Gii model, controller, CRUD views, forms सब auto-generate करता है।
Beginners तेज़ी से working apps बना सकते हैं।
Development speed 10x बढ़ जाती है।


245) Queue System

Yii Queue background jobs को asynchronously run करता है।
Email sending, SMS, reports, notifications जैसे heavy काम यही संभालता है।
Drivers: DB, Redis, RabbitMQ, Beanstalk आदि support।


246) Query Logging

Yii हर SQL query को log करता है, समय के साथ।
Debug toolbar में query time और source देखने को मिलता है।
Slow queries detect करने में helpful।


247) Query Profiler

Query profiler exact बताता है कि कौन सी query कितनी slow है।
Performance tuning के लिए बहुत जरूरी।
Database optimization strategy बनाने में helpful।


248) Query Scopes

Scopes predefined conditions हैं जैसे → active(), published(), featured()।
बार-बार लिखने वाले where conditions को एक जगह define किया जाता है।
Reusable और clean query code बनता है।


249) Query Parameters (bind values)

Query parameters raw input को bind करके SQL injection रोकते हैं।
Yii automatically prepared statements use करता है।
Secure और safe query execution होता है।


250) Query Pagination

Query में limit और offset जोड़कर pagination बनाई जाती है।
Pagination component इसे auto-manage करता है।
Large tables को small pages में fetch करना आसान।


251) Query Sorting

orderBy() और addOrderBy() से sorting set की जाती है।
ASC और DESC दोनों support होते हैं।
Reports, lists, tables में सबसे ज्यादा उपयोग।


252) Query Joins

joinWith() और innerJoin(), leftJoin() multiple tables को connect करते हैं।
Complex relational data आसानी से fetch हो जाता है।
ActiveRecord relations इसे और आसान बनाते हैं।


253) Query Filters (Filter conditions)

andFilterWhere() और orFilterWhere() only non-empty inputs apply करते हैं।
Forms और filters में blank fields से बचने के लिए useful।
Clean और dynamic search logic मिलता है।


254) Query Validators

कुछ validations direct DB query stage पर भी की जा सकती हैं।
Like unique validation query के base पर होती है।
Model-level validation को support करती है।


255) Query Indexing (Performance)

Proper indexing queries को super-fast बना देता है।
Yii migration से indexes create/drop किए जा सकते हैं।
Large databases में performance heavily improve होती है।


256) Query Sub Queries

Subqueries large SQL में nested query चलाने की सुविधा देते हैं।
Yii में QueryBuilder से subquery को select() के अंदर embed किया जा सकता है।
Analytics और reports में useful।


257) Query Cloning

clone() method एक query को duplicate करने देता है।
मूल query safe रहती है और new query customize की जा सकती है।
Reusable complex query logic के लिए helpful।


258) Query Result Formatting

Array, object, JSON — कई formats में results fetch किए जा सकते हैं।
asArray() arrays देता है और one() तथा all() result fetch करते हैं।
APIs और listings में यह बहुत उपयोगी है।


259) Query with ActiveRecord

ActiveRecord object-style queries देता है जैसे → User::find()->where()।
Relations और eager loading इसे और powerful बनाते हैं।
Raw SQL की dependency कम हो जाती है।


260) Query with Raw SQL

Yii raw SQL भी safely execute करने देता है।
createCommand() से custom queries बनती हैं।
Heavy optimization वाले tasks में useful।


261) Queue Workers

Queue workers background jobs को लगातार process करते हैं।
Console commands से queue listen/run किया जाता है।
High-scale apps में essential system।


262) Queue Delayed Jobs

Delayed jobs future time पर चलने वाले tasks होते हैं।
जैसे 10 मिनट बाद reminder email भेजना।
Queue component इस feature को support करता है।


263) Queue Retry Logic

Fail jobs को retry count और delay के साथ automatically फिर से run किया जाता है।
Error handling मजबूत हो जाता है।
Critical background tasks reliable बनते हैं।


264) Queue Serialization

Jobs serialize होकर DB या Redis में store होते हैं।
Job data safe और transferable रहता है।
Async systems का core mechanism।

265) Request Component (Yii::$app->request)

यह incoming HTTP request की सारी जानकारी देता है — URL, GET/POST, headers आदि।
User से आने वाले data को सुरक्षित तरीके से access करने के लिए यह core component है।
API और form handling में सबसे ज़्यादा उपयोग होता है।


266) Response Component (Yii::$app->response)

यह browser को वापस भेजे जाने वाले output को control करता है।
Status code, headers, JSON/XML response—all इसी से manage होते हैं।
API development में बहुत उपयोगी।


267) Routing (URL Manager)

Routing URLs को controller actions से map करता है।
Pretty URLs (index.php हटाकर clean URLs) इसी से बनती हैं।
REST API routes भी यहीं define किए जाते हैं।


268) RBAC (Role-Based Access Control)

यह roles, permissions और rule logic के आधार पर access control control करता है।
Admin, Editor, User जैसे roles आसानी से manage किए जा सकते हैं।
Yii का सबसे powerful authorization सिस्टम।


269) Relations — hasOne / hasMany / viaTable

Models के बीच database relationships define करने का तरीका।
AR-based queries relation data auto-fetch कर सकती हैं।
joinWith() और eager loading relations को तेज़ बनाते हैं।


270) RESTful API Framework

Yii2 में REST APIs बनाने का पूरा built-in system है।
ActiveController, serializers, formatters, pagination सब auto-work करते हैं।
JSON/XML दोनों formats support।


271) Render (render, renderPartial, renderAjax)

Views को output में बदलने का तरीका—HTML UI generate करता है।
render() layout के साथ, renderPartial() बिना layout के काम करता है।
AJAX calls के लिए renderAjax() used होता है।


272) Redirect (return $this->redirect())

User को दूसरी URL/Action पर भेजने के लिए।
Form submission के बाद "Success" pages पर redirect बहुत common है।
301/302 redirects भी supported हैं।


273) Request Lifecycle (Full Flow)

यह बताता है कि request server पर पहुंचने से लेकर response बनने तक पूरा process कैसा है।
Entry script → Config → Router → Controller → Action → View → Response.
PHP framework architecture को समझने का सबसे जरूरी concept।


274) Request Methods (GET, POST, PUT, DELETE)

APIs और forms में अलग-अलग HTTP methods के लिए अलग processing होती है।
Yii में request->isPost, isAjax जैसे helpers available हैं।
Multi-method APIs बनाने में helpful।


275) Response Formats (HTML, JSON, XML)

Yii response format automatically detect कर सकता है।
API में JSON सबसे commonly use होता है।
Browser UI में HTML response भेजा जाता है।


276) Rate Limiting (REST API)

API requests को limit करने की security feature।
Yii identity class में rateLimit() define करके implement होता है।
Abuse और overload से बचाता है।


277) Render Files (Static Files, Downloads)

Yii file download response भी दे सकता है (PDF, ZIP, Excel).
response->sendFile() method से file client तक भेजी जाती है।
File-based API responses के लिए useful।


278) Response Caching

Response को browser या server cache में stored किया जा सकता है।
HTML pages और API responses दोनों cache हो सकते हैं।
Performance में noticeable improvement होता है।


279) Resource Controllers (RESTful Controllers)

ActiveController बेसिक CRUD APIs को auto-generate करता है।
Pagination, sorting, filtering सब automatic मिल जाता है।
Minimal code से full REST backend बन जाता है।


280) Request Validation

Server आने वाले data को validate करने के लिए model validation rules use करता है।
APIs में गलत/खराब input automatically filter हो जाता है।
Security और stability बढ़ती है।


281) Route Rules (URL Rules)

Custom URL patterns जैसे:
'product/<id:\d+>' => 'product/view'
SEO-friendly URLs बनाने के लिए essential।


282) Response Headers

Content-Type, Cache-Control, Authorization headers set करने के लिए।
APIs में यह अत्यंत महत्वपूर्ण होता है।
response->headers->add() से custom headers लगाए जाते हैं।


283) REST Authentication (HTTP Basic / Bearer Token)

Yii APIs में Token, JWT, OAuth2 जैसी authentication methods available हैं।
User request verify हुए बिना data access नहीं करता।
Secure API development के लिए जरूरी।


284) REST Filters (Auth, RateLimiter, VerbFilter)

API endpoints पर सुरक्षा और restrictions add करने के लिए।
Filters actions के पहले या बाद में code run कर सकते हैं।
REST security patterns का हिस्सा।


285) Request Parameters (Query Params + Body Params)

GET parameters (URL से) और POST/PUT JSON body parameters अलग होते हैं।
Yii request->get() और request->post() दोनों को सुरक्षित बनाता है।
API input handling बहुत simple होता है।


286) Request Cookies

Yii request cookies को safely handle करता है।
Cookies user-specific settings या tokens store करने के लिए।
Security features (signing, encryption) भी available हैं।


287) Request Session

Session में user-specific temporary data store की जाती है।
Login users को track करने के लिए यह core component है।
Flash messages भी session में stored होते हैं।


288) Request Events (beforeRequest, afterRequest)

Application-level events हैं जो पूरे app में effect डालते हैं।
Logging, security checks, analytics जैसे tasks के लिए useful।
Global behavior control का तरीका।


289) Response Events (beforeSend, afterSend)

Response बदलने या inspect करने के लिए hooks available हैं।
API headers add करना, data wrap करना इन events में किया जाता है।
Advanced developers के लिए powerful customization।


290) RESTful Serialization (Serializer)

Models और data को JSON-form में convert करने का automatic system।
Hidden fields, extra fields, pagination—all handle automatically.
Customization के लिए serializer component modify किया जा सकता है।


291) Route Aliases

Routes के short names जैसे 'site/index' को alias दिया जा सकता है।
Menus और widgets में readable routes useful होते हैं।
Complex URLs को simple बनाने का तरीका।


292) Response Time Measurement

Debug toolbar response time show करता है।
Slow pages और APIs को पहचानने में helpful।
Optimization decision आसान बनता है।


293) Redis-Based Rate Limiting / Caching (Advanced)

High-traffic APIs Redis में request count track करते हैं।
Yii Redis extension इसे support करता है।
Large scale apps का core security layer।


294) REST Versioning

APIs में versioning जैसे /v1/products और /v2/products create किया जाता है।
Backward compatibility maintain करना आसान होता है।
Large apps में master-level concept है।

295) Security Component (Yii::$app->security)

यह password hashing, encryption, token generation, random strings बनाने का काम करता है।
App को SQL Injection, CSRF, XSS जैसी security threats से बचाता है।
Login सिस्टम में यही core backbone होता है।


296) Scenarios (Model Scenarios)

Scenarios validation rules को अलग-अलग situations के लिए control करते हैं।
जैसे signup में password चाहिए, login में नहीं।
One model → multiple use-case possible बनाता है।


297) Session Handling (Yii::$app->session)

Session user-specific temporary storage है।
Login state, flash messages, cart items आदि इसमें store होते हैं।
Yii automatically secure signed cookies session देता है।


298) Schema Builder (Migrations)

Migrations में database schema (tables, columns, indexes) बनाने का आसान तरीका।
createTable(), addColumn(), dropColumn() जैसे methods available।
Database version control clean होता है।


299) Search Model

GridView/ListView में filtering के लिए separate SearchModel बनाया जाता है।
यह sorting + search query logic store करता है।
Admin panels में हर जगह उपयोग।


300) Sorting (yii\data\Sort)

Sort component ASC/DESC ordering manage करता है।
GridView/ListView automatically sort links generate करते हैं।
Reports, tables, listing में heavily used।


301) Slug Behavior

Text को SEO-friendly URL slug में convert करता है।
"My First Blog Post" → "my-first-blog-post"
Blog, products, pages में सबसे common feature।


302) Soft Delete

Soft delete record को delete नहीं करता, सिर्फ "deleted" flag mark करता है।
डेटा database में मौजूद रहता है और recover किया जा सकता है।
Large systems के लिए best practice।


303) SQL Injection Prevention

Yii prepared statements और bind parameters auto-use करता है।
Raw input कभी भी query में direct नहीं जाता।
Authentication systems में बहुत जरूरी security।


304) Static Pages Rendering

Yii static content pages (about, contact, FAQ) आसानी से render करता है।
इनमें database की जरूरत नहीं होती।
Lightweight और SEO-friendly pages।


305) Sub-Layouts

Main layout के अंदर inner layout use किया जा सकता है।
Large apps में अलग-अलग sections के लिए अलग layouts helpful होते हैं।
Frontend/Backend में wide usage।


306) SiteController (Default Controller)

यह default controller है जिसमें homepage, error page, contact page actions होते हैं।
Yii basic template इसी से शुरू होता है।
Beginners के लिए first learning point।


307) Serializer (REST API)

API response को JSON/XML format में convert करने वाला component।
Extra fields, hidden fields, pagination handling—all built-in।
RESTful APIs का core system।


308) Single Responsibility Principle (SRP)

एक class/ method को सिर्फ एक काम करना चाहिए।
Yii architecture इसी principle पर आधारित है।
Maintainable और clean code का secret।


309) Service Locator

Yii::$app एक service locator है जिसमें request, db, session, user जैसे services stored हैं।
इन्हें कहीं भी access किया जा सकता है।
App level dependencies को simple बनाता है।


310) Service Layer (Advanced Architecture)

Business logic को controllers से अलग कर service classes में रखा जाता है।
Large apps में clean architecture important है।
Testing और maintenance आसान होता है।


311) Settings Component

App settings को database/config में store करने का तरीका।
Dynamic config जैसे website title, email settings, currency settings।
Admin panels में common requirement।


312) Seeder (Database Seeding)

Testing या dummy data create करने के लिए seeders useful हैं।
Migrations के साथ run होते हैं।
Development speed बढ़ाते हैं।


313) Session Flash Messages

Temporary single-use messages जो page refresh होने पर हट जाते हैं।
"Successfully saved!" जैसे alerts इसी से बनते हैं।
Yii::$app->session->setFlash() से set होता है।


314) Session Cookies

Cookies में session data store करने का तरीका।
Secure और HttpOnly flags app security बढ़ाते हैं।
Login systems heavily depend करते हैं।


315) Service Container (Dependency Injection Container)

Objects और dependencies को manage करने वाला DI सिस्टम।
Yii::$container से dependencies auto-inject होती हैं।
Testing, mocking और modular design आसान होता है।


316) System Events

Yii global events जैसे beforeRequest, afterRequest support करता है।
Logging, analytics, monitoring के लिए powerful hooks।
Large scale apps में उपयोगी।


317) Storage (File Storage / Cloud Storage)

Uploads को local, S3, Google Storage आदि में store करने की system।
Yii extensions cloud storage easy बना देते हैं।
Media-heavy apps में महत्वपूर्ण।


318) Security Filters

Filter जैसे AccessControl, VerbFilter security rules लागू करते हैं।
Controller actions में unauthorized access रोका जाता है।
REST APIs heavily use करते हैं।


319) Session Regeneration

Login होने पर session ID regenerate होता है।
Session hijacking से security बढ़ती है।
High-level security apps में necessary।


320) Sync / Async Operations

Yii console commands background tasks async run कर सकते हैं।
REST APIs कभी-कभी sync, कभी async workflow मांगते हैं।
Queue + Jobs के साथ उपयोग किया जाता है।


321) Server-Side Rendering (SSR)

Views PHP server पर render होकर HTML output भेजते हैं।
Client केवल final HTML प्राप्त करता है।
SEO और speed के लिए best तरीका।


322) Schema Caching

Database schema को cache में store किया जाता है ताकि बार-बार query न चले।
Performance में noticeable improvement।
Large databases के लिए जरूरी।


323) SQL Prepared Statements

Yii सभी queries को prepared statements में बदल देता है।
Security + performance दोनों बढ़ते हैं।
Manual binding की जरूरत नहीं।


324) StringHelper / SecurityHelper

Strings को manipulate करने, random tokens बनाने और sanitize करने में helpful।
SecurityHelper encryption और password features देता है।
Utility functions app development आसान बनाते हैं।

325) Transactions

Database में multiple queries को एक ही unit की तरह चलाया जाता है।
अगर एक भी query fail हो जाए, तो पूरा transaction rollback हो जाता है।
Money transfer, orders, payments में यह 100% आवश्यक होता है।


326) Templating (Views + Layouts System)

Yii views + layouts को मिलाकर HTML templates बनाता है।
Dynamic pages बनाना आसान और structured होता है।
Blade जैसा नहीं, लेकिन बहुत flexible है।


327) Theming

पूरे web app का look और UI एक click में बदलने के लिए themes use होती हैं।
CSS/JS/Views को अलग directories में रखकर theme switch किया जाता है।
Multi-brand applications में useful।


328) Translation (Yii::t())

Multi-language text conversion system।
Yii::t() के द्वारा किसी भी text को Hindi, Gujarati, English आदि में translate किया जा सकता है।
International apps में必須 (जरूरी) फीचर।


329) Table Schema

Database table की structure details (columns, type, indexes) को represent करता है।
Yii automatically schema पढ़कर AR models manage करता है।
Migrations भी इसी schema पर आधारित होते हैं।


330) Timestamp Behavior

Created_at और updated_at timestamps automatically set करता है।
हर insert/update पर समय auto-update होता है।
History tracking में helpful।


331) Testing (Unit, Functional, Acceptance)

Yii Codeception के साथ testing framework integrate करता है।
Unit (logic test), functional (controllers), acceptance (full UI test) support करता है।
Large apps में stable deploy के लिए जरूरी है।


332) Traits

Reusable code blocks जिन्हें multiple classes में use किया जा सकता है।
Inheritance की जरूरत कम कर देता है।
Yii behaviors और utility classes traits often use करते हैं।


333) Tree Behavior (Nested Sets)

Categories, menus, folders जैसे tree-structure data manage करने के लिए।
Nested set algorithm relation-based tree fast बनाता है।
Advanced feature: hierarchical data management।


334) Typecasting

Model attributes को specific datatype (int, bool, float) में convert करता है।
Database operations में error कम होती है।
REST APIs में typed data send/receive helpful।


335) Third-Party Integrations

Yii Composer से external packages add करके extend किया जा सकता है।
Payment gateway, SMS service, email tools easily integrate होते हैं।
हालांकि lightweight framework है, पर extensibility बहुत high है।


336) Token-Based Authentication (API Login)

Mobile/API apps में access tokens से authentication किया जाता है।
Bearer Token, JWT, OAuth2 सभी support होते हैं।
Password हर बार भेजने की जरूरत नहीं पड़ती।


337) Tasks Scheduling (Cron + Console)

Repeated background tasks (backup, logs clean, reporting) cron jobs से auto-run होते हैं।
Yii console commands direct cron में चलाए जाते हैं।
Automation के लिए best system।


338) Table Prefixing

Yii table names में prefix add करना support करता है (जैसे tbl_user)।
Shared database systems में उपयोगी।
Migrations और AR models दोनों auto-handle करते हैं।


339) Template Inheritance

Main layout से child views inherit होते हैं।
Common header/footer UI दुबारा नहीं लिखना पड़ता।
Time और code दोनों बचते हैं।


340) Tabular Input (Multiple Rows Form Handling)

एक ही form में multiple rows/records submit करने का तरीका।
Orders, invoice items, product attributes में use होता है।
Yii इसे validate भी कर सकता है।


341) Table Joins (ActiveRecord)

joinWith(), innerJoin(), viaTable() multi-table relations easily handle करते हैं।
Complex queries automatically generate हो जाती हैं।
Reports और advanced listings में important।


342) Theme Assets Override

Theme, app के default CSS/JS files को override कर सकता है।
Look & feel totally customized हो जाता है।
Frontend branding आसानी से होता है।


343) Throwing Exceptions

NotFoundHttpException, ForbiddenHttpException, ServerErrorHttpException जैसे exceptions error handling के लिए।
Yii automatically error page show करता है।
Cleaner code के लिए आवश्यक।


344) Try-Catch with Yii Error System

Error-safe operations run करने के लिए।
Database failures, file uploads, payments में सबसे ज्यादा use।
Custom error messages भी भेजे जा सकते हैं।


345) Tree Traversal (Nested Set Operations)

Tree structure में nodes को move, reorder, insert करने का advanced तरीका।
Yii extensions इसे powerful बनाते हैं।
Category tree management easy होता है।


346) Template Variables ($this->params)

View में parameters set करके layout में भेजे जाते हैं।
Breadcrumbs, page title, meta tags convey करना आसान होता है।
Yii का built-in global view communication तरीका।


347) Table Mapping (ActiveRecord)

Model class को table से map करना AR का major concept।
Primary key auto-detect होता है।
Relations इसी mapping पर depend करते हैं।


348) Temporary Files Handling

Uploads या processing के दौरान temporary files handle करने की process।
Yii runtime folder में temp files save करता है।
File uploads, image processing में महत्वपूर्ण।


349) TimeZone Handling

App, user, database timezone अलग-अलग होने पर auto-conversion support।
Date/time formats भी auto-format होते हैं।
International apps में आवश्यक।

350) URL Manager (Yii::$app->urlManager)

URL Manager clean, SEO-friendly URLs बनाने और उन्हें controller actions से map करने का काम करता है।
index.php हटाकर pretty URLs enable किए जाते हैं।
REST API routes भी यही component manage करता है।


351) URL Helper (Url::to(), Url::home())

यह helper links और paths generate करता है।
Hard-coded URLs लिखने से बचाता है और dynamic URL generation आसान बनाता है।
Menus, redirects, buttons—all में use होता है।


352) User Component (Yii::$app->user)

Login/logout, authentication state और logged-in user की जानकारी यही handle करता है।
IdentityInterface model के साथ integrate होकर user identify करता है।
Session-based login इसी component में manage होता है।


353) Upload File Handling (UploadedFile class)

File upload करने, validate करने और save करने के लिए Yii UploadedFile helper देता है।
Single और multiple uploads दोनों support करता है।
Image/pdf/doc uploads में सबसे ज्यादा use।


354) Unique Validator

Unique rule database में कोई value duplicate है या नहीं, यह check करता है।
User registration, email validation, username validation में important।
AR model में auto-check करता है।


355) Unit Testing

Yii Codeception के माध्यम से unit tests support करता है।
Business logic और functions को अलग से test किया जाता है।
Reliable और bug-free application बनाने के लिए आवश्यक।


356) User Identity (IdentityInterface)

Yii को बताता है कि user को कैसे identify करना है (ID, token, password आदि)।
Login process में यह core part है।
Database से user find करना इसी के methods से होता है।


357) User Authentication Flow

Login form submit → model validation → IdentityInterface check → session create।
Yii का पूरा auth system इसी flow पर चलता है।
Web apps और APIs दोनों में consistent mechanism देता है।


358) User Roles & Permissions (RBAC Integration)

User roles और उनकी permissions इस system से manage की जाती हैं।
Admin, Editor, Customer जैसी multi-role functionality आसान होती है।
High-security applications में बहुत आवश्यक।


359) User Session Storage

Logged-in user का data session में store होता है।
Yii session secure, encrypted और fast होता है।
Flash messages भी इसी session में save होती हैं।


360) URL Rules (Routing Rules)

Custom route patterns define करने की सुविधा।
Example: 'product/<id:\d+>' => 'product/view'
SEO URLs और REST endpoint mapping में उपयोग होता है।


361) URL Aliases (@web, @app, @runtime)

Aliases shortcuts हैं जो file paths और URL paths simplify करते हैं।
@web → base URL, @app → application root path।
Config और assets में यह बहुत helpful है।


362) User Login Required Filter

AccessControl filter किसी action पर login आवश्यक बनाता है।
Unauthorized user को login page पर redirect किया जाता है।
Security के लिए essential।


363) User Logout Process

Yii::$app->user->logout() user session destroy करके logout करता है।
Cookies और identity clear हो जाती है।
Multi-session systems में महत्वपूर्ण feature।


364) User Password Hashing

Security component password को hash करके save करता है (plain नहीं)।
Password verify करने के लिए validatePassword() use होता है।
Modern hashing algorithms (bcrypt/argon2) support।


365) User Access Control

कौन user क्या कर सकता है, यह access rules या RBAC से controlled होता है।
Unauthorized access को रोकता है।
Admin panels में ज़रूरी concept।


366) User Events (login, logout)

Login और logout पर events trigger होते हैं।
Logging, tracking, analytics के लिए इस्तेमाल किया जाता है।
Advanced systems में helpful।


367) URL Encoding / Decoding

Special characters को safe format में convert करता है।
APIs और redirects में इसका उपयोग होता है।
Security और compatibility दोनों में help करता है।


368) User Token Auth (API)

API-based apps token authentication use करते हैं (Bearer Token, JWT)।
User बिना session API access कर सकता है।
Mobile apps का सबसे प्रमुख तरीका।


369) Upload Directory & Path Config

Uploads directory को web-accessible या private set किया जा सकता है।
Yii path aliases से upload locations configure होते हैं।
Security और storage structure manage करना आसान।


370) URL Normalization

Yii redundant slashes, uppercase, trailing slashes normalize कर देता है।
SEO और clean URL structure के लिए useful।
Google crawling behaviour improve करता है।


371) URL Caching

Routes और URLs cache में store होकर fast load होते हैं।
Large apps में performance improve होती है।
Routing speed dramatically बढ़ाता है।


372) User Permissions Check (can())

Yii::$app->user->can('permission_name') permission check करता है।
RBAC roles और rules का पूरा respect करता है।
API endpoints में authorization का default method।


373) User Identity Auto-Login (Remember Me)

User cookies के द्वारा remember किया जा सकता है।
Login बार-बार करने की जरूरत नहीं पड़ती।
Cookie-signing और encryption secure login देता है।


374) User Profile Model / Relation

User details के लिए separate profile table बनाई जा सकती है।
AR relation = $user->profile easy बनाता है।
Modular user system implement करना आसान होता है।

375) Validation Rules

Model में input data को check करने के लिए rules लिखे जाते हैं।
required, email, string, integer, unique जैसे built-in rules available हैं।
Validation form submit होने से पहले ही गलत input रोक देता है।


376) Validator Classes

हर validation rule एक validator class से represent होता है।
Custom validators भी बनाए जा सकते हैं जो complex logic check करें।
Model rules में इन validators के नाम लिखकर activate किया जाता है।


377) Verb Filter

किस action को कौन से HTTP method से access किया जा सकता है, यह control करता है।
Example: delete केवल POST/DELETE से अनुमति।
REST APIs में security के लिए बहुत जरूरी।


378) View (View Rendering System)

Controller से आने वाले data को HTML में convert करने का काम view करता है।
Yii view बहुत lightweight और fast होता है।
Frontend UI का पूरा structure इसी से बनता है।


379) View Parameters ($this->params)

Controller view को variables भेजता है, और view layout को parameters भेजता है।
Breadcrumbs, title, meta tags जैसे data इसी से pass होता है।
App-wide UI control आसान होता है।


380) View Rendering Lifecycle

Controller → View → Layout → Output → Response
यह पूरा sequence view rendering process कहलाता है।
Yii clean और fast rendering provide करता है।


381) Virtual Attributes

Model में ऐसे properties जो database में column नहीं होते लेकिन calculate किए जाते हैं।
getFullName() जैसे getters automatically fullName attribute बना देते हैं।
Reports, derived values और UI helpers में useful।


382) Value Formatting (Yii::$app->formatter)

Date, time, number, currency, boolean को human-friendly format में बदलता है।
Example: 2024-12-01 → Dec 1, 2024
Frontend UI clean और readable बनता है।


383) ViewContextInterface

Widgets को यह बताता है कि उनका parent view कौन है।
Assets, CSS/JS और paths सही तरीके से register होते हैं।
Custom widgets बनाते समय काम आता है।


384) View Caching

पूरे views या view के कुछ हिस्सों को cache किया जा सकता है।
Repeated UI pages बहुत तेजी से load होते हैं।
High-traffic websites में essential है।


385) View Fragments Caching

View के छोटे sections (जैसे sidebar, menu) को अलग cache किया जा सकता है।
Dynamic + static UI का perfect balance मिलता है।
Complex layouts में performance बढ़ाता है।


386) View Blocks

View blocks layout के हिस्सों में custom HTML inject करने देते हैं।
beginBlock(), endBlock() functions से use किया जाता है।
SEO tags या custom JS/CSS जोड़ने में मदद।


387) View Injection

Controller या layout view में extra variables inject कर सकता है।
UI consistency बनाए रखने के लिए important feature।
Breadcrumbs, menu items, alerts में daily use।


388) View Themes

Themes views के HTML templates को override या replace करती हैं।
Frontend design बदलना आसान हो जाता है।
Multi-layout या multi-branding apps में powerful feature।


389) View Events

beforeRender और afterRender events view load होने से पहले/बाद run होते हैं।
Logging, UI manipulation या debugging के लिए helpful।
Advanced customization possible करता है।


390) View Asset Registration

Views CSS और JS assets को register कर सकती हैं।
$this->registerJs(), registerCss(), registerAssetBundle() use करके include किए जाते हैं।
Frontend behavior control में मुख्य भूमिका।


391) Views in Modules

Module-specific views self-contained होते हैं।
Large apps को multi-section structure देने में मदद।
Admin panel और customer panel अलग views के साथ possible।


392) View Compression / Minification

Assets को compress और minify करके fast loading possible।
Production mode में Yii automatic optimization support करता है।
Frontend performance boost मिलता है।


393) View Rendering Modes (Normal, Partial, AJAX)

render() → layout के साथ
renderPartial() → layout के बिना
renderAjax() → AJAX responses के लिए
तीनों modes modern UI में regular use होते हैं।


394) View Fallback Mechanism

अगर कोई view missing हो, Yii alternate directory में fallback search करता है।
Theme + module systems में बहुत helpful।
App breakdown से बचाता है।

395) Widgets

Widgets छोटे reusable UI components होते हैं जैसे GridView, ListView, ActiveForm।
ये HTML+PHP को combine करके बार-बार इस्तेमाल होने वाले parts बनाते हैं।
UI development बहुत fast और clean हो जाता है।


396) GridView Widget

Database रिकॉर्ड को table format में automatically दिखाने वाला widget।
Sorting, filtering, pagination पहले से built-in होता है।
Admin panels में सबसे ज्यादा उपयोग होने वाला widget।


397) ListView Widget

Data को सूची (list) के रूप में show करता है, हर item कस्टम HTML में दिखता है।
Products list, blog posts, comments जैसी जगहों पर useful।
Pagination और data provider fully supported।


398) DetailView Widget

Single record को key-value form में neatly show करता है।
User profile, product details जैसी screens में उपयोग।
Customize करना आसान और flexible structure देता है।


399) ActiveForm Widget

Form बनाने, validation और display करने का आसान तरीका।
Client-side व server-side दोनों validation auto-enable होते हैं।
Error messages और input styling built-in।


400) Web Application Config

config/web.php में पूरा web app configure होता है।
Request, response, db, user, session, urlManager जैसे components यहीं defined।
App behavior यहीं से control होता है।


401) Web Controller

Browser से आने वाले HTTP requests को handle करने वाला controller।
Action methods चलाकर view या JSON response भेजता है।
Yii2 MVC architecture का core हिस्सा।


402) WebUser (yii\web\User)

User login/logout, session, authentication management करता है।
Yii::$app->user->identity से current user info मिलता है।
RBAC permissions भी इसी में manage होते हैं।


403) Workflow (Custom Implementation)

Application में multi-step process handle करने का तरीका।
Order process, task approval, ticket flow आदि में उपयोग।
Events + states का उपयोग कर complex workflow बनाया जा सकता है।


404) With() Method (Eager Loading)

Relations को एक ही query में load करने के लिए use होता है।
N+1 query problem solve कर देता है।
Large datasets में performance बहुत बढ़ाता है।


405) Web Services (SOAP/REST)

Yii2 RESTful API पूरा support करता है controllers और serializers के साथ।
SOAP पुराने enterprise systems को connect करने के लिए use होता है।
APIs का development सरल और systematic।


406) WebSocket Integration

Real-time communication (chat, notifications, live updates) के लिए।
Yii2 external libraries जैसे Ratchet या Swoole के साथ integrate होता है।
Push-based dynamic UI possible।


407) Web Asset Compression

CSS/JS files को combine, compress और minify करके load time तेज करता है।
Yii2 asset manager production mode में auto-optimize भी कर सकता है।
Performance-oriented websites में महत्वपूर्ण feature।


408) Web Response Formatting

Response data को HTML, JSON, XML, PDF आदि formats में बदलने की सुविधा।
REST APIs में JSON/XML formatting सबसे ज्यादा use होता है।
Yii::$app->response->format से control किया जाता है।


409) Web Security Filters

AccessControl, VerbFilter, CSRF, rate limiting जैसे filters app को secure रखते हैं।
Action से पहले ये filters user input और permissions check करते हैं।
Security vulnerabilities को रोकने में effective।


410) Web Error Handler

404, 403, 500 जैसी errors को handle करता है।
Custom error pages भी आसानी से set की जा सकती हैं।
Logs में errors detailed form में store होती हैं।


411) Web Sessions

User की temporary जानकारी जैसे login state, cart items, preferences store करता है।
Yii::$app->session से सरल access मिलता है।
Database, file या Redis में store कर सकते हैं।


412) Web Caching Components

Page cache, fragment cache और HTTP cache performance improve करते हैं।
FileCache, DbCache, RedisCache widely used हैं।
High-traffic apps में बहुत उपयोगी।


413) Web Filters (Controller Filters)

beforeAction/afterAction logic attach करने के लिए।
Security checks, redirects, logs आदि आसानी से जोड़ सकते हैं।
MVC flow को clean और modular बनाता है।


414) Web RunAction

Controller के अंदर एक action को दूसरे action से programmatically run करने के लिए।
Reusable logic share करना आसान होता है।
Nested process या partial workflows में उपयोग।

415) XML Response

Yii2 response को XML format में भी convert कर सकता है।
REST API या पुराने सिस्टम के integration में XML बहुत उपयोगी है।
Yii::$app->response->format = Response::FORMAT_XML से enable होता है।


416) XSS Prevention (Html::encode())

XSS attacks रोकने के लिए HTML output को escape किया जाता है।
Html::encode() user input को safe बना देता है ताकि script execute न हो।
Forms और comments जैसे user-generated content में बहुत जरूरी।


417) Xdebug Integration

Xdebug PHP का debugging tool है जिसे Yii2 के साथ easily integrate किया जा सकता है।
यह breakpoints, step-by-step debugging और variable inspection देता है।
Performance profiling के लिए भी useful है।


418) XPath Parsing

XML data को efficiently पढ़ने के लिए XPath queries use होती हैं।
Yii2 XML-based responses और external feeds process करने में helpful।
API/XML integrations में काम आता है।


419) X-Powered-By Header Control

Server response headers में PHP/Yii version leak न हो, इसके लिए यह header remove किया जा सकता है।
Security बढ़ाने के लिए Yii2 में इसे disable करने की सुविधा है।
Yii::$app->response->headers->remove('X-Powered-By') से done।


420) X-RATE-LIMIT (API Rate Limiting)

Yii2 REST framework में rate limiting built-in है।
API user कितना request कर सकता है, यह limits define होती हैं।
DDoS, abuse और API misuse से बचाव मिलता है।


421) XML Formatter

Data को readable XML format में convert करता है।
Large APIs और data exports में उपयोगी होता है।
Yii::$app->formatter->asXml() method से use किया जा सकता है।


422) XSSI Prevention

Cross-site script inclusion से बचने के लिए JSON prefix जोड़ा जाता है।
Yii2 JSON response को सुरक्षित बनाता है।
AngularJS और पुराने frontends के लिए important।


423) XHR Requests (Ajax Requests)

Ajax requests को Yii2 बहुत easily handle करता है renderAjax(), asJson() जैसे helpers से।
Dynamic UI और real-time interactive pages बनाने में essential।
Yii2 की jQuery asset bundle auto-integrate होती है।


424) XHTML Support

Yii2 views में generated HTML XHTML-compatible बनाया जा सकता है।
Clean और valid markup output मिलता है।
SEO-friendly और standards-following project में useful।

425) Yii Base Class (Yii::$app)

Yii class framework की main static class है जो helper functions प्रदान करती है।
Yii::$app पूरा application object return करता है (db, user, request, session आदि)।
यह Yii2 के पूरे architecture का केंद्र है।


426) Yii Aliases

Aliases shortcuts paths होते हैं जैसे @app, @web, @runtime, @vendor।
इनसे file paths और URLs manage करना आसान हो जाता है।
Large apps में directory access बहुत simple हो जाता है।


427) Yii Configuration System

Config files में components, modules, params और database settings define की जाती हैं।
Main configs: config/web.php, config/console.php
पूरे app का behavior यहीं से control होता है।


428) Yii2 Basic Template

एक simple project structure जिसमें controllers, models, views basic रूप में रहते हैं।
Beginner और छोटे projects के लिए सबसे अच्छा।
Fast setup और easy maintenance।


429) Yii2 Advanced Template

Frontend + Backend + Console का separate structure।
Large, multi-user, enterprise-level app के लिए best।
User management, environments, और modular structure built-in।


430) Yii2 Console Application

Terminal से commands चलाने के लिए system।
Migrations, cron jobs, batch processing, background tasks में उपयोग।
CLI-based fast automation संभव करता है।


431) Yii Debug Module (yii2-debug)

Web debugging tool जो request, DB queries, logs, profiling सब दिखाता है।
Toolbar के माध्यम से हर request की detail मिलती है।
Development और performance tuning के लिए बहुत जरूरी।


432) Yii Gii Module

Auto code generator — Models, Controllers, CRUD, Forms आदि seconds में बनाता है।
Beginners के लिए बहुत उपयोगी और time-saving।
Custom templates से output modify भी कर सकते हैं।


433) Yii REST Framework

RESTful APIs बनाने के लिए Yii2 का built-in framework।
Authentication, rate limiting, serializers, content negotiation सब included।
Mobile apps, SPA और API-based systems का backbone।


434) Yii Caching System

FileCache, DbCache, RedisCache, APCu जैसी caching techniques support करता है।
Large apps में performance boost देता है।
Page, data, fragment caching easy तरीके से apply होते हैं।


435) Yii Logging System

Errors, warnings, info logs file, database, email या syslog में save करता है।
Log targets set करके custom logging possible।
Debugging और tracing के लिए हर request auto-log होती है।


436) Yii Security Helper

Password hashing, random strings, encryption, CSRF protection जैसी security utilities देता है।
Yii::$app->security से सभी methods available हैं।
High-security applications में core tool।


437) Yii BaseObject

Yii2 की सभी major classes इस BaseObject को extend करती हैं।
Automatic getters/setters और lifecycle methods provide करता है।
Custom components बनाने में उपयोग।


438) Yii Framework Lifecycle

Request → Bootstrap → Routing → Controller → Action → View → Response
यह पूरा flow Yii2 request lifecycle कहलाता है।
Debugging और customization के लिए basic understanding जरूरी है।


439) Yii Helpers (Yii::$app helpers नहीं, official helpers)

Html, ArrayHelper, Url, FileHelper जैसे helpers common tasks simplify करते हैं।
Form fields, links, arrays, file operations seconds में possible हो जाते हैं।
Coding time आधा हो जाता है।


440) Yii Internationalization (Yii::t)

Text translation system जो multi-language sites बनाना easy बनाता है।
Yii::t() से dynamic translations done।
Global projects के लिए basic requirement।


441) Yii Events System

Yii में हर component events trigger कर सकता है और event handlers attach किए जा सकते हैं।
Advanced logging, workflow, background processing में उपयोग।
Observer pattern का clean implementation।


442) Yii Asset Manager

CSS/JS publish, compress, merge और cache करने का काम करता है।
Admin panel और frontend themes में heavy use।
Production mode में assets auto-optimize होते हैं।


443) Yii Request Component

HTTP request से सारी जानकारी (method, headers, form data, JSON body) देता है।
Yii::$app->request->get(), post(), headers useful methods हैं।
Routing और input validation में श्री भूमिका निभाता है।


444) Yii Response Component

Browser को data भेजने का काम करता है — HTML, JSON, XML, file download आदि।
Yii::$app->response->format से type set होता है।
REST API, redirect, file export में उपयोग।

445) Zero Configuration (Convention over Configuration)

Yii2 में कई features बिना ज्यादा config किए ही काम करते हैं।
Framework naming conventions follow करने पर auto-detection होता है।
Beginner के लिए development आसान और fast बनाता है।


446) Zones (Cache Zones)

Cache zones अलग-अलग sections के लिए अलग caching rules define करती हैं।
Page, fragment, data caching अलग-अलग zones में manage हो सकते हैं।
Large projects में performance tuning में helpful।


447) Zip Response (File Download)

Yii2 response को zip file के रूप में भी भेज सकता है।
File को compress करके download करवाने में useful (reports, backups)।
Yii::$app->response->sendFile() से आसान implementation।


448) Z-Index Rendering in Views

Frontend UI elements को ऊपर-नीचे दिखाने के लिए CSS z-index manage करना पड़ता है।
Yii2 views में custom CSS/JS add करके आसानी से control किया जा सकता है।
Modal, dropdown, popup overlap issues में useful।


449) Zii Widgets Compatibility (Yii1 → Yii2 Migration)

Yii2 में Yii1 Zii widgets by default नहीं होते, लेकिन compatibility extensions available हैं।
Migration projects में पुराने widgets को चलाने में मदद मिलती है।
Yii2 modern widgets (GridView, ListView) के साथ ज्यादा powerful है।


450) Zend Integration (Third Party Library Support)

Yii2 Composer-based है, इसलिए Zend libraries easily integrate की जा सकती हैं।
Security, mail, caching, authentication जैसी features extend करना possible।
Enterprise-level systems में Zend + Yii2 combo popular है।


451) Zero Downtime Deployment

Yii2 advanced setups में deploy करते समय downtime zero रखा जा सकता है।
Asset publish, DB migration, maintenance mode के साथ rolling updates possible।
Large production systems के लिए बहुत जरूरी।


452) Zone-based Routing (Custom Concept)

Modules, subdomains या language-based zones create करके routing divide की जाती है।
Multi-tenant या multi-language apps में helpful।
Yii2 का UrlManager इसे आसान बनाता है।


453) Zlib Compression Support

PHP Zlib enabled हो तो Yii2 responses को compress किया जा सकता है।
Compressed HTML/JSON download fast होता है।
Production apps में performance काफी बढ़ती है।


Comments

Popular posts from this blog

Yii2 Terms 1

Yii2 Framework - A to Z Concepts in Hindi A Active Record (AR) Yii2 का Active Record, ORM (Object Relational Mapping) है, जो PHP के माध्यम से database tables को classes के रूप में represent करता है। इसे database के साथ आसानी से काम करने के लिए use किया जाता है। Active Data Provider Active Data Provider का इस्तेमाल data को paginate (split) और sort करने के लिए किया जाता है, जो Yii2 के GridView या ListView widgets में data दिखाने में सहायक होता है। Access Control Filter (ACF) यह एक security feature है, जो controller actions पर access को user roles के आधार पर control करता है। Asset Bundles Asset Bundles Yii2 का तरीका है CSS, JavaScript files को manage करने का, जिससे application के frontend resources को optimize किया जाता है। Authentication यह प्रक्रिया है, जिससे किसी user की पहचान की जाती है और उसे system में लॉगिन करने की अनुमति मिलती है। B Base Controller Yii2 में base controller एक parent class होती है, जिससे सभी controllers inherit होते हैं और इसमें common logic रहता है। Behavior...

Yii Terms 5

  🅰️ A – Terms Active Record (AR) – Database tables ko PHP classes ke roop me represent karne wala ORM system. ActiveQuery – Active Record ke liye query building class jo relational data fetch karti hai. ActiveDataProvider – Data ko GridView/ListView me pagination aur sorting ke sath display karne ka component. Access Control Filter (ACF) – Controller actions par user roles ke basis par access control apply karta hai. Access Rules – Define karta hai ki kaunse user kaunse actions ko access kar sakta hai. Actions – Controller ke methods jo user requests handle karte hain. Aliases (@app, @web, etc.) – Paths aur URLs ko shortcut ke roop me define karna. Asset Bundles – CSS/JS files ko manage aur register karne ka Yii ka mechanism. Asset Manager – Assets ko publish aur cache karne ka component. Application Components – Core services jaise request, response, db, user etc. ActiveForm – HTML form banane aur validation karne ka widget. Ajax Validation – Client-side...

Yii Terms 3

  🅰️ A — Concepts (Official + TutorialsPoint + DynamicDuniya) Active Record (AR) Database table को PHP class की तरह इस्तेमाल करने की Yii की सबसे शक्तिशाली ORM system। Rows → Objects और Columns → Attributes बन जाते हैं। ActiveQuery AR queries (find, where, join, with) बनाने का chainable query builder system। Active Data Provider GridView/ListView के लिए paginated, sorted data provide करता है (official docs का recommended तरीका)। Access Control Filter (ACF) Controller actions पर allow/deny rules; TutorialsPoint इसे Yii की primary security मानता है। Access Rules User roles, login status, request method के आधार पर action access control। Actions (Inline + Standalone) Controller methods जो requests को handle करते हैं (index, view, create, update, delete)। Aliases (@app, @web, @runtime) Path shortcuts जिन्हें official docs strongly recommend करते हैं। Asset Bundles / Asset Manager CSS, JS को bundles में manage करना (DynamicDuniya: “CSS/JS एक जगह से manage”). Official do...