Skip to main content

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 docs: dependencies + publishing भी auto।

Application Lifecycle

Entry script → Config → Preloading → Routing → Controller → View → Response।

Application Components (db, request, user, session)

Yii::$app के अंदर services जिनसे पूरा framework चलता है।

ActiveForm / Ajax Validation

Auto validation form system; TutorialsPoint इसे Yii2 की “smart form system” कहता है।

Authentication

User who-is-logged-in check करना (IdentityInterface के द्वारा)।

Authorization (RBAC)

Roles → Permissions → Access control hierarchy (official advanced RBAC system)।

ArrayHelper

Array को manipulate करने के helpers।

Attribute Labels + Hints

Form fields के readable names और instructions।

Autoloading (PSR-4)

Namespaces के आधार पर automatic file loading।


🅱️ B — Concepts

Basic Template

Small apps के लिए light-weight structure (TutorialsPoint: beginner friendly)।

Base Controller / BaseModel

Common reusable logic के लिए parent classes।

Behaviors

Event-based reusable logic attach करने का तरीका (official doc highlight)।

Bootstrap Components

App start होते समय auto-loaded components।

Breadcrumbs Widget

Page navigation trail।

Batch Insert / Batch Query

Thousands of records को एक query में handle करना (performance booster)।

Built-in Validators

required, email, unique, file, number — सभी official validators।


🅲 C — Concepts

Caching (File/DB/Redis/MemCache)

App speed बढ़ाने का system; official docs में 5 types।

Components

Reusable PHP services (API clients, helpers, custom engines)।

Configuration (web.php / console.php)

Yii का heart — सभी settings यहीं से लोड होती हैं।

Console Application / Console Commands (yii migrate)

Cron, migration, job queue, batch tasks।

Controller

Request process + business logic + view rendering।

CRUD

Official Gii tool से auto generate — create/read/update/delete।

CSRF Protection

Forms के लिए default security (DynamicDuniya इसे “auto protection” बताता है)।

Cookies & Sessions

User state manage करना।

Custom Validators

Your own validation rules (simple functions या classes)।


🅳 D — Concepts

Data Provider

Sorted + Paginated data list widgets के लिए।

Data Pagination / Sorting

Large data को छोटे pages में divide करने की official technique।

Database Connection (Yii::$app->db)

PDO-based faster DB system।

Database Migrations

DB schema version control (official best practice)।

Database Transactions

Atomic multi-query safety।

Debug Toolbar (yii2-debug)

Live SQL, exceptions, time, memory — सब दिखाता है।

Dependency Injection (DI Container)

Loose-coupled architecture (official Yii core principle)।

Dynamic Forms

AJAX से dynamic form rows।


🅴 E — Concepts

Events & Event Handlers

Components में trigger होने वाली hooks (beforeSave, afterFind)।

Error / Exception Handling

Pretty error pages + log target support।

Extensions (composer)

Third-party packages (Kartik, Yii extensions, etc.)।

Email Sending (Mailer)

SMTP + file transport support।

Eager Loading (with())

N+1 problem को solve करने का official तरीका।

Encoders (Html::encode)

XSS से security।

Environment Configurations

dev / test / production separation (Advanced Template की ताकत)।


🅵 F — Concepts

Filters (AccessControl, VerbFilter)

Actions से पहले/बाद logic apply करना।

Form Validation

Rules → safe attributes → validation flow।

Flash Messages

Temporary alerts (success/error/info)।

File Uploads

किसी भी type की file को upload + validation।

Fixtures

Testing में DB को pre-filled data देना।

Formatter

Numbers, dates, currency formatting।


🅶 G — Concepts

Gii Code Generator

Models, CRUD, Forms, controllers ऑटो बनते हैं।

GridView

Table UI — pagination, sorting, filtering support built-in।

Global Params

Yii::$app->params में global settings।

Get/Post Requests

request->get(), request->post() से input लेना।

Group Query / Aggregates

sum(), avg(), count() → ActiveQuery के साथ।


🅷 H — Concepts

Helpers (Html, Url, ArrayHelper)

Most commonly used utilities।

HTTP Request / Response

Browser → app → browser full lifecycle।

Hashing / Security Component

Password hashing, encryption, random strings।

Hooks (beforeSave/afterFind)

Model lifecycle events।

HTML Purifier

Unsafe HTML clean करना।


🅸 I — Concepts

IdentityInterface

Login system का core interface।

Internationalization (i18n)

Multi-language support (Hindi, Gujarati, English etc.)।

Inline Validators

Model class में direct validation functions।

Input Sanitization

Filters जो unsafe input clean करते हैं।

Image Uploading/Resizing

Extensions + core functions।


🅹 J — Concepts

JSON Response (asJson())

REST/SPA apps के लिए।

Join With

Relations join करके data fetch करना।

JavaScript Registration

View में registerJs() से JS add करना।

JWT Authentication

API login security (common in mobile apps)।


🅺 K — Concepts

Kartik Widgets

Select2, DatePicker, FileInput — advanced UI।

Kinds of Views

main → layout → partial → blocks।


🅻 L — Concepts

Layouts

Common frame template।

Localization (L10n)

Region based formatting (dates/times)।

Logging

Yii::info(), Yii::error(), target = file/db/mail।

Lazy Loading

Data on-demand load।

ListView

List format UI।


🅼 M — Concepts

Models

DB + validation + business logic।

Migrations

DB structure का version control।

Modules

App inside app — admin module, api module।

Mailer

Email sending component।

Mutators & Accessors

getX(), setX() attribute transformation।

Model Scenarios

Different rules in different operations।

Multiple DB Connections

Multi-database support।


🅽 N — Concepts

Namespaces

Class grouping तरीका।

Navigation Widgets (NavBar/Nav)

Menus बनाने के लिए।

Nested Queries

Subqueries SQL form में।

Notification System

Events + database आधारित alerts।


🅾️ O — Concepts

Object Configurations

Array-based object creation।

Output Filters

Output को sanitize करना।

ORM

Yii का full database abstraction system।

Observers

Event-based programming।

Optimized Queries

Joins, eager loading, caching।


🅿️ P — Concepts

Pagination

Data को pages में काटना।

Pjax

Partial AJAX reload।

Pretty URLs

Clean URLs (index.php hidden)।

Params

Global configuration variables।

Partial Rendering

Partial view display।

Profiling

Performance debug करने का official तरीका।


🆀 Q — Concepts

Query Builder

SQL commands PHP syntax में लिखना।

Query Caching

Same query run होने से पहले cached result।

Query Scopes

Reusable AR conditions।

Queue (Background Jobs)

Yii2-Queue extension से async jobs।


🆁 R — Concepts

Request Component

GET/POST/FILES/headers सब read करता है।

Response Component

Output formats — HTML / JSON / XML।

Routing (URL Manager)

URL को controller & action से map करना।

RBAC

Roles → Permissions → Rules।

Relations (hasOne/hasMany)

Model relationships define करना।

RESTful API

Yii का dedicated REST framework।

Redirects

redirect() / goHome() / goBack()।


🆂 S — Concepts

Security Component

Password hashing, CSRF, encryption।

Scenarios

Validation rules sets।

Session Handling

User state management।

Schema Builder

Migrations के अंदर schema commands।

Search Model

Filter logic separate रखा जाता है।

Soft Delete

Record को delete न करके hidden करना।


🆃 T — Concepts

Transactions

Multiple queries को atomic बनाना।

Templating / Theming

UI theme change system।

Translation (Yii::t())

Language-based translations।

Timestamp Behavior

created_at / updated_at auto।

Testing (Codeception)

Unit + Functional + Acceptance tests।


🆄 U — Concepts

URL Manager

Routing + Pretty URLs।

UploadFile

File upload helper।

User Component

Login/logout/identity/session।

Unique Validator

Duplicate entries रोकने के लिए।


🅅 V — Concepts

Validation Rules

Input validation।

Verb Filter

Actions को GET/POST/PUT तक सीमित करना।

View System

HTML + PHP templates।

Virtual Attributes

Model attributes जो DB में नहीं होते।


🆆 W — Concepts

Widgets (GridView, ListView, DetailView, ActiveForm)

Reusable UI components।

WebUser

Current logged-in user।

Web Services

REST/SOAP services implement करना।

WebSocket Integration

Real-time apps के लिए।


🆇 X — Concepts

XML Response

XML API output।

XSS Prevention

Html::encode() से।

Xdebug

Debugging tool।


🆈 Y — Concepts

Yii Base Class

Yii::$app, Yii::t(), Yii::getAlias()।

Yii2 Templates (Basic & Advanced)

Starter project architectures।

Yii2 Console Application

CLI-based app environment।

Yii Gii Module

Admin generator tool।


🆉 Z — Concepts

Zero Configuration

Convention-based auto-working parts।

Zones (Cache)

Cache sections।

Zip Response

Downloadable zip file output।

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...