What Is Yii Framework?

Yii Framework is an open source, and big in demand now a days, and it is object oriented web application framework for PHP 5. Yii Framework is often called a ‘component library’, because it has many loosely coupled components that you can use more or less independently. At Excel PTP we provides Yii framework training according to the current requirement of IT industry as onsite or offsite or online. Yii Framework also provides an advanced Model-View-Controller (MVC) implementation that can be used to establish a basic structure for your Yii Framework applications.Yii Framework is an open source framework for developing web applications and services with PHP 5. Yii Framework is implemented using 100% object-oriented code. The component structure of Zend Framework is somewhat unique; each component is designed with few dependencies on other components. This loosely coupled architecture allows developers to use components individually. We often call this a “use-at-will” design.

Introduction To Yii

  • Requirements
  • what is Yii Best for?
  • How does Yii Compare with Other Frameworks?
  • Installation
  • Creating Your First Yii Application

Model-View-Controller (MVC)

    • A Typical Workow
  • Entry Script
    • Debug Mode
  • Application
    • Application Con_guration
      Application Base Directory
      Application Components
      Core Application Components
      Application Life Cycle
  • Controller
    • Route
      Controller Instantiation
  • Model
  • View
    • Layout
      System View
  • Component
    • Component Property
      Component Event
      Component Behavior
  • Module
    • Creating Module
      Using Module
      Nested Module
  • Path Alias and Namespace
    • Root Alias
      Importing Classes
      Importing Directories
      Namespaced Classes
  • Conventions
    • URL
  • Development Workow
  • Best MVC Practices
    • Model

Special Topics

  • Automatic Code Generation
    • Using Gii
      Extending Gii
  • URL Management
    • Creating URLs
      User-friendly URLs
      Using Named Parameters
      Parameterizing Routes
      Parameterizing Hostnames
      Hiding index.php
      Faking URL Su_x
      Using Custom URL Rule Classes
  • Authentication and Authorization
    • De_ning Identity Class
      Login and Logout
      Cookie-based Login
      Access Control Filter
      Handling Authorization Result
      Role-Based Access Control
      Con_guring Authorization Manager
      De_ning Authorization Hierarchy
      Using Business Rules
  • Theming
    • Using a Theme
      Creating a Theme
      Theming Widgets
      Customizing Widgets Globally
  • Logging
    • Message Logging
      Message Routing
      Message Filtering
      Logging Context Information
      Performance Pro_ling
      Pro_ling SQL Executions
  • Error Handling
    • Raising Exceptions
      Displaying Errors
      Handling Errors Using an Action
      Message Logging
  • Web Service
    • De_ning Service Provider
      Declaring Web Service Action
      Consuming Web Service
      Data Types
      Class Mapping
      Intercepting Remote Method Invocation
  • Internationalization
    • Locale and Language
      Date and Time Formatting
      Number Formatting
  • Using Alternative Template Syntax
    • Using CPradoViewRenderer
      Mixing Template Formats
  • Console Applications
    • Overview
      Creating Commands
      Console Command Action
      Customizing Console Applications
  • Security
    • Cross-site Scripting Prevention
      Cross-site Request Forgery Prevention
      Cookie Attack Prevention
  • Performance Tuning
    • Enabling APC Extension
      Disabling Debug Mode
      Using yiilite.php
      Using Caching Techniques
      Database Optimization
      Minimizing Script Files


  • Caching
  • Data Caching
    • Cache Dependency
      Query Caching
  • Fragment Caching
    • Caching Options
      Nested Caching
  • Page Caching
  • Dynamic Content

Extending Yii

  • Using Extensions
    • Zii Extensions
      Application Component
      Console Command
      Generic Component
  • Creating Extensions
    • Application Component
      Console Command
      Generic Component
  • Using 3rd-Party Libraries
    • Using namespaced 3rd-Party Libraries
      Using Yii in 3rd-Party Systems


  • Testing
    • Test-Driven Development
      Test Environment Setup
      Test Bootstrap Script
  • De_ning Fixtures
  • Unit Testing
  • Functional Testing

Working With Forms

  • Working with Form
  • Creating Model
    • De_ning Model Class
      Declaring Validation Rules
      Securing Attribute Assignments
      Triggering Validation
      Retrieving Validation Errors
      Attribute Labels
  • Creating Action
  • Creating Form
  • Collecting Tabular Input
  • Using Form Builder
    • Basic Concepts
      Creating a Simple Form
      Specifying Form Elements
      Accessing Form Elements
      Creating a Nested Form
      Customizing Form Display

Working With Databases

  • Working with Database
  • Data Access Objects (DAO)
    • Establishing Database Connection
      Executing SQL Statements
      Fetching Query Results
      Using Transactions
      Binding Parameters
      Binding Columns
      Using Table Pre_x
  • Query Builder
    • Preparing Query Builder
      Building Data Retrieval Queries
      Building Data Manipulation Queries
      Building Schema Manipulation Queries
  • Active Record
    • Establishing DB Connection
      De_ning AR Class
      Creating Record
      Reading Record
      Updating Record
      Deleting Record
      Data Validation
      Comparing Records
      Using Transaction with AR
      Named Scopes
  • Relational Active Record
    • Declaring Relationship
      Performing Relational Query
      Performing Relational query without getting related models
      Relational Query Options
      Disambiguating Column Names
      Dynamic Relational Query Options
      Relational Query Performance
      Statistical Query
      Relational Query with Named Scopes
      Relational Query with through
  • Database Migration
    • Creating Migrations
      Transactional Migrations
      Applying Migrations
      Reverting Migrations
      Redoing Migrations
      Showing Migration Information
      Modifying Migration History
      Customizing Migration Command