Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Yii 1.1 ExtensionNew to Visual Studio Code? Get it now.
Yii 1.1 Extension

Yii 1.1 Extension

sagar karn

|
5 installs
| (0) | Free
VS Code extension for Yii 1.1 framework support
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Yii 1.1 Extension for VS Code

A comprehensive VS Code extension that enhances productivity for Yii 1.1 framework development. This extension provides intelligent navigation, autocomplete, linting, and 100+ code snippets to streamline your Yii development workflow.

Features

Intelligent Navigation

  • Go to View from Action: Click code lenses or use Ctrl+Click on render() and renderPartial() calls to navigate directly to view files
  • Go to Controller from View: Navigate from view files back to their corresponding controller actions
  • Layout Navigation: Jump to layout files from $this->layout assignments with code lens support
  • Action Navigation: Navigate to action methods from accessRules() arrays
  • URL Route Navigation: Navigate to controllers/actions from createUrl() and createAbsoluteUrl() calls
  • Import Navigation: Navigate to imported classes via Yii::import() paths

Smart Autocomplete

  • View Path Autocomplete: Intelligent suggestions for view names in render() and renderPartial() with dot notation path insertion
  • Import Autocomplete: Context-aware suggestions for Yii::import() paths
  • Validation Rule Autocomplete: Quick suggestions for validation rule types and model attributes

Real-time Linting & Diagnostics

  • View Path Validation: Validates view file existence in render() and renderPartial() calls (works in both controllers and views)
  • Action Array Validation: Ensures actions defined in actions() array have corresponding action methods
  • Import Path Validation: Validates Yii::import() paths and file existence
  • Validation Rule Diagnostics: Validates validation rule syntax and attribute names with hover information and quick fixes

Code Snippets

100+ ready-to-use code snippets including:

  • Controllers, actions, filters, and access rules
  • Models with validation rules, relations, and lifecycle methods
  • Form widgets (CActiveForm, fields, buttons, dropdowns)
  • Data providers (CActiveDataProvider, CArrayDataProvider)
  • Widgets (GridView, ListView, DetailView, Menu, Breadcrumbs, Tabs)
  • Database queries (CDbCriteria, find methods)
  • Behaviors, components, modules, and console commands
  • AJAX, JSON responses, caching, and session handling

Requirements

  • PHP projects using Yii 1.1 framework

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Yii 1.1 Extension"
  4. Click Install

Usage

The extension activates automatically when you open PHP files. All features work out of the box with sensible defaults.

Navigation

  • Ctrl+Click on view paths, imports, or routes to navigate
  • Code lenses appear above action methods and layout assignments for quick navigation
  • Right-click context menu options available in views and controllers

Snippets

Type snippet prefixes (e.g., yii-controller, yii-action, yii-model) and press Tab to expand.

License

TBD

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft