Skip to main content

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
    Behavior का उपयोग classes में reusable code जोड़ने के लिए किया जाता है, जैसे validation, logging, etc.

  • Bootstrap Components
    Yii2 में Bootstrap के UI components को आसानी से integrate किया जाता है, जैसे buttons, forms, grids, आदि।


C

  • Caching
    Caching का उपयोग performance को improve करने के लिए किया जाता है, जहाँ frequently used data को memory, database, या file system में cache किया जाता है।

  • Controller
    Controller का काम user requests को handle करना और appropriate response देना होता है।

  • CRUD Operations
    CRUD (Create, Read, Update, Delete) Yii2 framework में standard operations होते हैं, जो database entries के साथ काम करते हैं।

  • CSRF Protection
    CSRF (Cross-Site Request Forgery) protection एक security measure है, जो malicious attacks को रोकता है।


D

  • Database Migrations
    Migrations का मतलब है database schema को version control के साथ manage करना, जिससे आसानी से schema updates किया जा सके।

  • Data Provider
    Data Provider, जैसे कि ActiveDataProvider, data को pagination और sorting के साथ widgets (GridView, ListView) में display करने के लिए उपयोग किया जाता है।

  • Dependency Injection (DI)
    DI एक design pattern है, जो classes के बीच dependencies को loosely couple करता है, ताकि code maintainable रहे।


E

  • Events
    Yii2 में events का उपयोग object lifecycle पर code execute करने के लिए किया जाता है। यह किसी action या process के होने पर trigger होता है।

  • Extensions
    Yii2 के extensions external packages होते हैं, जो framework की functionality को enhance करते हैं, जैसे third-party libraries।

  • Error Handling
    Yii2 में error handling, exception classes और logs के माध्यम से किया जाता है, ताकि errors को manage किया जा सके।


F

  • Filters
    Filters का उपयोग किसी action से पहले या बाद में logic execute करने के लिए किया जाता है, जैसे validation, logging, etc.

  • Form Validation
    Form Validation user input को validate करता है ताकि data corruption और security issues से बचा जा सके।

  • File Uploads
    Yii2 में file upload functionality, files को server पर securely upload करने के लिए provided होती है।


G

  • Gii (Code Generator)
    Gii एक Yii2 का tool है, जो automatic code generation करने में मदद करता है जैसे models, CRUD operations, controllers आदि।

  • GridView
    GridView, data को table के रूप में show करने का एक powerful widget है, जिसमें sorting, filtering और pagination जैसी features होती हैं।

  • Global Params
    Yii2 में global params, application-wide configuration settings होती हैं, जैसे कि database connection settings, API keys आदि।


H

  • Helpers
    Yii2 में helpers pre-defined static methods होते हैं, जो frequently used tasks को आसान बनाते हैं, जैसे HtmlHelper, ArrayHelper, आदि।

  • Hashing
    Yii2 में data (जैसे password) को securely store करने के लिए hashing algorithms का उपयोग किया जाता है।

  • HTTP Request & Response
    HTTP Request, user के browser से data प्राप्त करने का तरीका है, और HTTP Response, server द्वारा भेजा गया output होता है।


I

  • Identity Interface
    Identity Interface user authentication के लिए use किया जाता है, जिससे user के identity को verify किया जाता है।

  • Internationalization (i18n)
    Yii2 में internationalization (i18n) multi-language support प्रदान करता है, जिससे applications को अलग-अलग भाषाओं में customize किया जा सकता है।

  • Input Validators
    Yii2 में input validators का उपयोग किया जाता है, ताकि user input को validate किया जा सके और application में incorrect data न आए।


J

  • JSON Response
    Yii2 API responses को JSON format में send करने के लिए asJson() method का use किया जाता है, ताकि data को client-side JavaScript में आसानी से process किया जा सके।

  • Join With
    Yii2 में, joinWith() method का use relational data को efficiently retrieve करने के लिए किया जाता है, जिससे multiple tables को एक साथ query किया जा सके।


Conclusion

यह एक संक्षिप्त guide थी, जिसमें Yii2 framework के प्रमुख concepts और terms को हिंदी में सरलता से समझाया गया है। यह आपके लिए एक बेहतर शुरुआत हो सकती है। आप इन explanations को एक PDF में convert कर सकते हैं।

अगर आपको किसी विशेष concept के बारे में और विस्तार से जानकारी चाहिए, तो आप मुझसे पूछ सकते हैं।


Comments

Popular posts from this blog

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